pub struct TimedEvent {
pub timestamp: Option<String>,
pub offset: Option<String>,
pub event: Value,
pub source: SourceLocation,
}Expand description
One event carrying exactly one absolute timestamp or relative offset.
Fields§
§timestamp: Option<String>RFC3339 timestamp. Mutually exclusive with Self::offset.
offset: Option<String>Sigma timespan offset. Mutually exclusive with Self::timestamp.
event: ValueEvent body.
source: SourceLocationOptional file/line context for validation errors.
Trait Implementations§
Source§impl Clone for TimedEvent
impl Clone for TimedEvent
Source§fn clone(&self) -> TimedEvent
fn clone(&self) -> TimedEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TimedEvent
impl Debug for TimedEvent
Source§impl PartialEq for TimedEvent
impl PartialEq for TimedEvent
Source§impl Serialize for TimedEvent
impl Serialize for TimedEvent
impl StructuralPartialEq for TimedEvent
Auto Trait Implementations§
impl Freeze for TimedEvent
impl RefUnwindSafe for TimedEvent
impl Send for TimedEvent
impl Sync for TimedEvent
impl Unpin for TimedEvent
impl UnsafeUnpin for TimedEvent
impl UnwindSafe for TimedEvent
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