pub struct SchemaPredicateConfig {
pub field_present: Option<String>,
pub field_absent: Option<String>,
pub any_of: Option<Vec<String>>,
pub equals: Option<FieldValueConfig>,
pub matches: Option<FieldValueConfig>,
}Expand description
A predicate as written in YAML: a single-key map, for example
field_present: ecs.version or equals: { field: type, value: alert }.
Exactly one form must be set per list entry.
Fields§
§field_present: Option<String>field_present: <field>
field_absent: Option<String>field_absent: <field>
any_of: Option<Vec<String>>any_of: [<field>, ...]
equals: Option<FieldValueConfig>equals: { field: <field>, value: <value> }
matches: Option<FieldValueConfig>matches: { field: <field>, value: <regex> }
Trait Implementations§
Source§impl Clone for SchemaPredicateConfig
impl Clone for SchemaPredicateConfig
Source§fn clone(&self) -> SchemaPredicateConfig
fn clone(&self) -> SchemaPredicateConfig
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 SchemaPredicateConfig
impl Debug for SchemaPredicateConfig
Source§impl Default for SchemaPredicateConfig
impl Default for SchemaPredicateConfig
Source§fn default() -> SchemaPredicateConfig
fn default() -> SchemaPredicateConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SchemaPredicateConfig
impl<'de> Deserialize<'de> for SchemaPredicateConfig
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 SchemaPredicateConfig
impl RefUnwindSafe for SchemaPredicateConfig
impl Send for SchemaPredicateConfig
impl Sync for SchemaPredicateConfig
impl Unpin for SchemaPredicateConfig
impl UnsafeUnpin for SchemaPredicateConfig
impl UnwindSafe for SchemaPredicateConfig
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