pub struct LogEntry {
pub timestamp: DateTime<Utc>,
pub line_number: u32,
pub level: String,
pub message: String,
pub rhai_api_name: Option<String>,
}Expand description
Represents a single log entry captured from script execution.
This structure contains all the essential information about a log event that occurred during Rhai script execution.
§Fields
timestamp- UTC timestamp when the log entry was createdline_number- Line number in the script where the log occurredmessage- The actual log message content
Fields§
§timestamp: DateTime<Utc>§line_number: u32§level: String§message: String§rhai_api_name: Option<String>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 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