pub struct Timespan {
pub count: u64,
pub unit: TimespanUnit,
pub seconds: u64,
pub original: String,
}Expand description
A parsed timespan like 1h, 15s, 30m, 7d.
Reference: pySigma correlations.py SigmaCorrelationTimespan
Fields§
§count: u64§unit: TimespanUnit§seconds: u64Equivalent duration in seconds (approximate for Month/Year).
original: StringOriginal string representation.
Implementations§
Trait Implementations§
impl Eq for Timespan
impl StructuralPartialEq for Timespan
Auto Trait Implementations§
impl Freeze for Timespan
impl RefUnwindSafe for Timespan
impl Send for Timespan
impl Sync for Timespan
impl Unpin for Timespan
impl UnsafeUnpin for Timespan
impl UnwindSafe for Timespan
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.