pub struct LogRecord {
pub timestamp: SystemTime,
pub source: SourceKind,
pub origin: String,
pub stream: Stream,
pub level: Level,
pub body: String,
pub labels: BTreeMap<String, String>,
}Expand description
One log line plus its metadata.
Fields§
§timestamp: SystemTime§source: SourceKind§origin: StringHuman-readable origin, e.g. a container name or namespace/pod/container.
stream: Stream§level: Level§body: String§labels: BTreeMap<String, String>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