Struct config_lite::Config
source · [−]pub struct Config {
pub file_content: String,
/* private fields */
}Fields
file_content: StringImplementations
sourceimpl Config
impl Config
pub fn init() -> Result<Self, ConfigError>
pub fn get<'a, T: for<'de> Deserialize<'de>>(
&self,
s: &'a str
) -> Result<T, ConfigError>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more