pub trait ResourceLoader {
    fn load<'life0, 'async_trait>(
        source: &'life0 str
    ) -> Pin<Box<dyn Future<Output = Result<Self>> + Send + 'async_trait>>
    where
        Self: Sized + DeserializeOwned + Send + 'async_trait,
        'life0: 'async_trait
, { ... } }
Expand description

Load config from local file or remote url. To use this trait, derive DeserializeOwned then implement this trait.

Provided Methods§

Load config from local file or remote url.

Implementors§