pub struct TracerConfiguration {
pub context_enabled: Option<bool>,
pub timestamp_enabled: Option<bool>,
pub timestamp_type: Option<TimestampType>,
pub file_enabled: Option<bool>,
pub line_enabled: Option<bool>,
pub format: Option<String>,
}
Expand description
A struct representing the configuration options for the tracer.
Fields§
§context_enabled: Option<bool>
Whether to include context information in log messages. If None
, the default behavior is used.
timestamp_enabled: Option<bool>
Whether to include a timestamp in log messages. If None
, the default behavior is used.
timestamp_type: Option<TimestampType>
The type of timestamp to use in log messages. If None
, the default behavior is used.
file_enabled: Option<bool>
Whether to include the file name in log messages. If None
, the default behavior is used.
line_enabled: Option<bool>
Whether to include the line number in log messages. If None
, the default behavior is used.
format: Option<String>
The format string to use when generating log messages. If None
, the default behavior is used.
Implementations§
Trait Implementations§
Source§impl Clone for TracerConfiguration
impl Clone for TracerConfiguration
Source§fn clone(&self) -> TracerConfiguration
fn clone(&self) -> TracerConfiguration
Returns a copy 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 Default for TracerConfiguration
impl Default for TracerConfiguration
Source§fn default() -> TracerConfiguration
fn default() -> TracerConfiguration
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TracerConfiguration
impl RefUnwindSafe for TracerConfiguration
impl Send for TracerConfiguration
impl Sync for TracerConfiguration
impl Unpin for TracerConfiguration
impl UnwindSafe for TracerConfiguration
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