pub struct Value(pub Result<String, VarError>);Expand description
The wrapped env var result.
§Examples
use dotconf;
std::fs::write(".env", "a=b").unwrap();
dotconf::init().expect("Failed to load env conf file");
dotconf::var("a").to_string();
dotconf::var("b").to_isize();
dotconf::var("c").to_bool();Tuple Fields§
§0: Result<String, VarError>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Value
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnsafeUnpin for Value
impl UnwindSafe for Value
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