pub struct LogLine {
pub timestamp: UnixNanos,
pub level: Level,
pub color: LogColor,
pub component: Ustr,
pub message: String,
pub fields: LogFields,
}Expand description
Represents a log event which includes a message.
Fields§
§timestamp: UnixNanosThe timestamp for the event.
level: LevelThe log level for the event.
color: LogColorThe color for the log message content.
component: UstrThe Nautilus system component the log event originated from.
message: StringThe log message content.
fields: LogFieldsArbitrary structured key-value fields attached to this log event.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LogLine
impl<'de> Deserialize<'de> for LogLine
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for LogLine
impl RefUnwindSafe for LogLine
impl Send for LogLine
impl Sync for LogLine
impl Unpin for LogLine
impl UnsafeUnpin for LogLine
impl UnwindSafe for LogLine
Blanket Implementations§
impl<T> Allocation for T
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