pub struct Config { /* private fields */ }Trait Implementations§
Source§impl ConfigurationTrait for Config
impl ConfigurationTrait for Config
Source§fn get<T: DeserializeOwned>(&self, key: &str) -> ConfigResult<T>
fn get<T: DeserializeOwned>(&self, key: &str) -> ConfigResult<T>
get toml config and deserialize to type
fn new(table: Table, source: Source) -> Self
fn try_from_source(source: Source) -> ConfigResult<Self>
fn source(&self) -> &Source
fn has(&self, key: &str) -> bool
fn all(&self) -> Table
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