pub struct EventRecordExport {
pub timestamp: String,
pub pid: u32,
pub event_type: String,
pub details: Value,
}Expand description
Event record for incident bundles
Fields§
§timestamp: StringISO timestamp
pid: u32Process ID
event_type: StringEvent type name
details: ValueEvent-specific details
Implementations§
Source§impl EventRecordExport
impl EventRecordExport
Sourcepub fn new(
pid: u32,
timestamp: DateTime<Utc>,
event_type: String,
details: Value,
) -> Self
pub fn new( pid: u32, timestamp: DateTime<Utc>, event_type: String, details: Value, ) -> Self
Create from a decoded event. Note: This simplifies the previous implementation by avoiding circular dependency on super::events. The caller is responsible for converting their specific Event enum to this strict output format.
Trait Implementations§
Source§impl Clone for EventRecordExport
impl Clone for EventRecordExport
Source§fn clone(&self) -> EventRecordExport
fn clone(&self) -> EventRecordExport
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EventRecordExport
impl Debug for EventRecordExport
Auto Trait Implementations§
impl Freeze for EventRecordExport
impl RefUnwindSafe for EventRecordExport
impl Send for EventRecordExport
impl Sync for EventRecordExport
impl Unpin for EventRecordExport
impl UnwindSafe for EventRecordExport
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