pub struct Event {
pub id: EventId,
pub level: EventLevel,
pub provider: Cow<'static, str>,
pub channel: Cow<'static, str>,
pub computer: String,
pub timestamp: Option<SystemTime>,
pub record_id: Option<RecordId>,
pub process_id: Option<ProcessId>,
pub thread_id: Option<ThreadId>,
pub data: Option<HashMap<Cow<'static, str>, String>>,
pub formatted_message: Option<String>,
}Expand description
A complete Windows Event Log record.
Fields§
§id: EventIdEvent ID (event type identifier)
level: EventLevelEvent severity level
provider: Cow<'static, str>Provider/source name (e.g., “Security”, “System”)
channel: Cow<'static, str>Channel name (e.g., “Security”, “Operational”)
computer: StringComputer name where event occurred
timestamp: Option<SystemTime>Event timestamp (may be unavailable for corrupted events)
record_id: Option<RecordId>Event record ID (unique per log, may wrap)
process_id: Option<ProcessId>Process ID that generated the event
thread_id: Option<ThreadId>Thread ID that generated the event
data: Option<HashMap<Cow<'static, str>, String>>User event data (key-value pairs with interned field names)
formatted_message: Option<String>Formatted event message (available when parsed with .with_message())
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnsafeUnpin for Event
impl UnwindSafe for Event
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