pub struct LogRecord {
pub ts: u64,
pub level: Level,
pub tag: String,
pub msg: String,
}Expand description
A single structured log record.
ts is nanoseconds since UNIX epoch internally; serialised as a
human-readable "YYYY-MM-DD HH:MM:SS.nnnnnnnnn" string in JSON.
Fields§
§ts: u64Nanosecond UNIX timestamp (internal u64; JSON: readable string).
level: LevelSeverity.
tag: StringSource identifier — provider_id or component name.
msg: StringFree-form log message body.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LogRecord
impl<'de> Deserialize<'de> for LogRecord
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 LogRecord
impl RefUnwindSafe for LogRecord
impl Send for LogRecord
impl Sync for LogRecord
impl Unpin for LogRecord
impl UnsafeUnpin for LogRecord
impl UnwindSafe for LogRecord
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