#[non_exhaustive]pub struct InputsUsed {
pub uses_udm: bool,
pub uses_entity: bool,
pub uses_detection: bool,
/* private fields */
}Expand description
InputsUsed is a convenience field that tells us which sources of events (if any) were used in the rule. NEXT TAG: 4
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.uses_udm: boolOptional. Whether the rule queries UDM events.
uses_entity: boolOptional. Whether the rule queries entity events.
uses_detection: boolOptional. Whether the rule queries detections.
Implementations§
Source§impl InputsUsed
impl InputsUsed
Sourcepub fn set_uses_udm<T: Into<bool>>(self, v: T) -> Self
pub fn set_uses_udm<T: Into<bool>>(self, v: T) -> Self
Sourcepub fn set_uses_entity<T: Into<bool>>(self, v: T) -> Self
pub fn set_uses_entity<T: Into<bool>>(self, v: T) -> Self
Sourcepub fn set_uses_detection<T: Into<bool>>(self, v: T) -> Self
pub fn set_uses_detection<T: Into<bool>>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for InputsUsed
impl Clone for InputsUsed
Source§fn clone(&self) -> InputsUsed
fn clone(&self) -> InputsUsed
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 InputsUsed
impl Debug for InputsUsed
Source§impl Default for InputsUsed
impl Default for InputsUsed
Source§fn default() -> InputsUsed
fn default() -> InputsUsed
Returns the “default value” for a type. Read more
Source§impl PartialEq for InputsUsed
impl PartialEq for InputsUsed
Source§fn eq(&self, other: &InputsUsed) -> bool
fn eq(&self, other: &InputsUsed) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for InputsUsed
Auto Trait Implementations§
impl Freeze for InputsUsed
impl RefUnwindSafe for InputsUsed
impl Send for InputsUsed
impl Sync for InputsUsed
impl Unpin for InputsUsed
impl UnsafeUnpin for InputsUsed
impl UnwindSafe for InputsUsed
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