pub struct LogEntry {
pub level: LogLevel,
pub at_ms: Option<i64>,
pub message: String,
pub fields: Map<String, Value>,
pub truncated: bool,
}Expand description
Diagnostic worker-clock time does not participate in admission or lease decisions.
Fields§
§level: LogLevel§at_ms: Option<i64>§message: String§fields: Map<String, Value>§truncated: boolImplementations§
Source§impl LogEntry
impl LogEntry
pub fn new(level: LogLevel, at_ms: Option<i64>, message: &str) -> Self
Sourcepub fn insert_field(&mut self, key: &str, value: Value)
pub fn insert_field(&mut self, key: &str, value: Value)
Fields are bounded scalars. Application objects are not retained or traversed.
Trait Implementations§
impl StructuralPartialEq for LogEntry
Auto Trait Implementations§
impl Freeze for LogEntry
impl RefUnwindSafe for LogEntry
impl Send for LogEntry
impl Sync for LogEntry
impl Unpin for LogEntry
impl UnsafeUnpin for LogEntry
impl UnwindSafe for LogEntry
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