pub struct LogEntry {
pub timestamp: DateTime,
pub level: Level,
pub message: String,
pub error: Option<String>,
}
Expand description
Log entry structure
Fields§
§timestamp: DateTime
Timestamp of the log entry
level: Level
Log level
message: String
Log message
error: Option<String>
Optional error details
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LogEntry
impl RefUnwindSafe for LogEntry
impl Send for LogEntry
impl Sync for LogEntry
impl Unpin 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