pub struct EnvService { /* private fields */ }Implementations§
Source§impl EnvService
impl EnvService
pub fn new(handler: EnvType) -> Result<Self, EnvUtilsError>
pub fn load(&self) -> bool
pub fn retrieve_or_default<T: FromStr>(&self, key: &str, default: T) -> T
pub fn retrieve_or_default_with_error<T: FromStr>( &self, key: &str, default: T, ) -> Result<T, EnvUtilsError>
pub fn retrieve_with_error<T: FromStr>( &self, key: &str, ) -> Result<T, EnvUtilsError>
Auto Trait Implementations§
impl Freeze for EnvService
impl !RefUnwindSafe for EnvService
impl !Send for EnvService
impl !Sync for EnvService
impl Unpin for EnvService
impl !UnwindSafe for EnvService
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