Struct alto_logger::options::Options
source · [−]#[non_exhaustive]pub struct Options {
pub style: StyleConfig,
pub color: ColorConfig,
pub time: TimeConfig,
}
Expand description
Configuration for the logger
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.style: StyleConfig
The style configuration
color: ColorConfig
The color configuration
time: TimeConfig
The time configuration
Implementations
sourceimpl Options
impl Options
sourcepub const fn with_style(self, style: StyleConfig) -> Self
pub const fn with_style(self, style: StyleConfig) -> Self
Use this StyleConfig
with these Options
sourcepub const fn with_color(self, color: ColorConfig) -> Self
pub const fn with_color(self, color: ColorConfig) -> Self
Use this ColorConfig
with these Options
sourcepub fn with_time(self, time: TimeConfig) -> Self
pub fn with_time(self, time: TimeConfig) -> Self
Use this TimeConfig
with these Options
Trait Implementations
sourceimpl From<ColorConfig> for Options
impl From<ColorConfig> for Options
sourcefn from(conf: ColorConfig) -> Self
fn from(conf: ColorConfig) -> Self
Converts to this type from the input type.
sourceimpl From<StyleConfig> for Options
impl From<StyleConfig> for Options
sourcefn from(conf: StyleConfig) -> Self
fn from(conf: StyleConfig) -> Self
Converts to this type from the input type.
sourceimpl From<TimeConfig> for Options
impl From<TimeConfig> for Options
sourcefn from(conf: TimeConfig) -> Self
fn from(conf: TimeConfig) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnwindSafe for Options
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more