pub struct FormatOptions {
pub format: LogFormat,
pub file: bool,
pub line_number: bool,
pub thread_ids: bool,
pub thread_names: bool,
pub target: bool,
pub level: bool,
}Expand description
Configuration options for log output formatting.
This struct bundles all the formatting options that control what information is included in log output.
Fields§
§format: LogFormatThe overall format style.
file: boolWhether to show the source file path.
line_number: boolWhether to show the source line number.
thread_ids: boolWhether to show thread IDs.
thread_names: boolWhether to show thread names.
target: boolWhether to show the log target (module path).
level: boolWhether to show the log level.
Trait Implementations§
Source§impl Clone for FormatOptions
impl Clone for FormatOptions
Source§fn clone(&self) -> FormatOptions
fn clone(&self) -> FormatOptions
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 FormatOptions
impl Debug for FormatOptions
Source§impl Default for FormatOptions
impl Default for FormatOptions
impl Copy for FormatOptions
Auto Trait Implementations§
impl Freeze for FormatOptions
impl RefUnwindSafe for FormatOptions
impl Send for FormatOptions
impl Sync for FormatOptions
impl Unpin for FormatOptions
impl UnwindSafe for FormatOptions
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