cosmic_config

Trait ConfigGet

source
pub trait ConfigGet {
    // Required method
    fn get<T: DeserializeOwned>(&self, key: &str) -> Result<T, Error>;
}

Required Methods§

source

fn get<T: DeserializeOwned>(&self, key: &str) -> Result<T, Error>

Get a configuration value

Object Safety§

This trait is not object safe.

Implementors§