pub struct EventPredicate {
pub event_type: Option<String>,
pub attr: Option<String>,
pub equals: Option<String>,
pub matches: Option<String>,
pub min: Option<f64>,
pub max: Option<f64>,
}Expand description
Conditions on one event; all set fields must hold (AND). At least one
condition is required, and value conditions require attr. An event
without the named attribute never matches.
Fields§
§event_type: Option<String>Match only events of this type.
attr: Option<String>Attribute the value conditions below apply to.
equals: Option<String>Value (as text) equals this exactly.
matches: Option<String>Value (as text) matches this regex.
min: Option<f64>Numeric value is at least this (non-numeric values never match).
max: Option<f64>Numeric value is at most this.
Trait Implementations§
Source§impl Clone for EventPredicate
impl Clone for EventPredicate
Source§fn clone(&self) -> EventPredicate
fn clone(&self) -> EventPredicate
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 EventPredicate
impl Debug for EventPredicate
Source§impl Default for EventPredicate
impl Default for EventPredicate
Source§fn default() -> EventPredicate
fn default() -> EventPredicate
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EventPredicate
impl<'de> Deserialize<'de> for EventPredicate
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for EventPredicate
impl RefUnwindSafe for EventPredicate
impl Send for EventPredicate
impl Sync for EventPredicate
impl Unpin for EventPredicate
impl UnsafeUnpin for EventPredicate
impl UnwindSafe for EventPredicate
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