pub struct Config { /* private fields */ }Trait Implementations§
Source§impl ConfigurationTrait for Config
impl ConfigurationTrait for Config
Source§fn get<T>(&self, key: &str) -> Result<T, Error>where
T: DeserializeOwned,
fn get<T>(&self, key: &str) -> Result<T, Error>where
T: DeserializeOwned,
get toml config and deserialize to type
fn new(table: Map<String, Value>, source: Source) -> Config
fn try_from_source(source: Source) -> Result<Config, Error>
fn source(&self) -> &Source
fn has(&self, key: &str) -> bool
fn all(&self) -> Map<String, Value>
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more