pub struct EnvAppConfig {
pub server: EnvServerConfig,
pub logging: EnvLoggingConfig,
pub auth_api_key: EnvApiKeyConfig,
}Expand description
Environment variable configuration
Uses Option<T> for all fields to properly distinguish between
“not set” and “explicitly set to default value”.
Fields§
§server: EnvServerConfigServer configuration from environment
logging: EnvLoggingConfigLogging configuration from environment
auth_api_key: EnvApiKeyConfigAPI key configuration from environment
Trait Implementations§
Source§impl Clone for EnvAppConfig
impl Clone for EnvAppConfig
Source§fn clone(&self) -> EnvAppConfig
fn clone(&self) -> EnvAppConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EnvAppConfig
impl Debug for EnvAppConfig
Source§impl Default for EnvAppConfig
impl Default for EnvAppConfig
Source§fn default() -> EnvAppConfig
fn default() -> EnvAppConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EnvAppConfig
impl RefUnwindSafe for EnvAppConfig
impl Send for EnvAppConfig
impl Sync for EnvAppConfig
impl Unpin for EnvAppConfig
impl UnsafeUnpin for EnvAppConfig
impl UnwindSafe for EnvAppConfig
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