pub struct EnvLoggingConfig {
pub level: Option<String>,
pub enable_console: Option<bool>,
pub enable_file: Option<bool>,
}Expand description
Environment variable configuration for logging
All fields are Option<T> to distinguish between “not set from environment”
and “explicitly set from environment”.
§Semantics
None- The environment variable was not set; use the config file or default valueSome(value)- The environment variable was explicitly set tovalue
Fields§
§level: Option<String>Log level
enable_console: Option<bool>Whether to enable console logging
enable_file: Option<bool>Whether to enable file logging
Trait Implementations§
Source§impl Clone for EnvLoggingConfig
impl Clone for EnvLoggingConfig
Source§fn clone(&self) -> EnvLoggingConfig
fn clone(&self) -> EnvLoggingConfig
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 EnvLoggingConfig
impl Debug for EnvLoggingConfig
Source§impl Default for EnvLoggingConfig
impl Default for EnvLoggingConfig
Source§fn default() -> EnvLoggingConfig
fn default() -> EnvLoggingConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EnvLoggingConfig
impl RefUnwindSafe for EnvLoggingConfig
impl Send for EnvLoggingConfig
impl Sync for EnvLoggingConfig
impl Unpin for EnvLoggingConfig
impl UnsafeUnpin for EnvLoggingConfig
impl UnwindSafe for EnvLoggingConfig
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