1 2 3 4 5 6 7 8 9 10 11 12 13 14
use async_trait::async_trait; use super::{Config, ConfigError}; mod db; mod file; #[async_trait] pub trait ConfigBackend { async fn load(&mut self) -> Result<Config, ConfigError>; } pub use db::DbBackend; pub use file::{ConfigExt, FileBackend};