pub struct Config { /* private fields */ }Expand description
The base atter config.
Implementations§
Source§impl Config
impl Config
Sourcepub fn prod(&self) -> &Environment
pub fn prod(&self) -> &Environment
Production Config
Sourcepub fn stage(&self) -> &Environment
pub fn stage(&self) -> &Environment
Stage Config
Sourcepub fn test(&self) -> &Environment
pub fn test(&self) -> &Environment
Test Config
Sourcepub fn dev(&self) -> &Environment
pub fn dev(&self) -> &Environment
Development Config
Source§impl Config
impl Config
Sourcepub fn set_common(&mut self, val: Common) -> &mut Self
pub fn set_common(&mut self, val: Common) -> &mut Self
Common Config
Sourcepub fn set_prod(&mut self, val: Environment) -> &mut Self
pub fn set_prod(&mut self, val: Environment) -> &mut Self
Production Config
Sourcepub fn set_stage(&mut self, val: Environment) -> &mut Self
pub fn set_stage(&mut self, val: Environment) -> &mut Self
Stage Config
Sourcepub fn set_test(&mut self, val: Environment) -> &mut Self
pub fn set_test(&mut self, val: Environment) -> &mut Self
Test Config
Sourcepub fn set_dev(&mut self, val: Environment) -> &mut Self
pub fn set_dev(&mut self, val: Environment) -> &mut Self
Development Config
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Config
impl<'de> Deserialize<'de> for Config
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Config
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