pub struct LogStruct {
pub message: String,
pub log_type: LogType,
pub datetime: DateTime<Local>,
}Expand description
Represents a single log entry.
This struct is used to store information about a single log message.
It includes the log’s message, its type (e.g.,
Debug, Error, etc.), and the date and time when the log was created.
It can be used for storing logs in memory more efficiently.
Fields:
message: The actual log message as a string.log_type: The type of the log (e.g.,Debug,Error,Info, etc.).datetime: The timestamp of when the log entry was created.
Fields§
§message: String§log_type: LogType§datetime: DateTime<Local>The date and time at which the log was created.
Trait Implementations§
Source§impl Ord for LogStruct
impl Ord for LogStruct
Source§impl PartialOrd for LogStruct
impl PartialOrd for LogStruct
impl Eq for LogStruct
impl StructuralPartialEq for LogStruct
Auto Trait Implementations§
impl Freeze for LogStruct
impl RefUnwindSafe for LogStruct
impl Send for LogStruct
impl Sync for LogStruct
impl Unpin for LogStruct
impl UnwindSafe for LogStruct
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