pub struct LogData {
pub level: LogLevel,
pub message: String,
pub fields: Value,
pub timestamp: Instant,
pub trace_id: Option<String>,
pub span_id: Option<String>,
}Expand description
Log data for batching
Fields§
§level: LogLevel§message: String§fields: Value§timestamp: Instant§trace_id: Option<String>§span_id: Option<String>Implementations§
Trait Implementations§
Source§impl MemoryEstimator for LogData
Available on crate feature structured-logging only.
impl MemoryEstimator for LogData
Available on crate feature
structured-logging only.fn estimated_size(&self) -> usize
Auto Trait Implementations§
impl Freeze for LogData
impl RefUnwindSafe for LogData
impl Send for LogData
impl Sync for LogData
impl Unpin for LogData
impl UnsafeUnpin for LogData
impl UnwindSafe for LogData
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