#[non_exhaustive]pub struct Rule {
pub category: Option<String>,
pub desc: Option<String>,
pub name: Option<String>,
pub type: Option<String>,
pub uid: Option<String>,
pub version: Option<String>,
}Expand description
Rule
The Rule object describes characteristics of a rule associated with a policy or an event.
[] Category: | Name: rule
Constraints:
- at_least_one:
[name,uid]
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.category: Option<String>Category
The rule category.
optional
desc: Option<String>Description
The description of the rule that generated the event.
optional
name: Option<String>Name
The name of the rule that generated the event.
recommended
type: Option<String>Type
The rule type.
optional
uid: Option<String>Unique ID
The unique identifier of the rule that generated the event.
recommended
version: Option<String>Version
The rule version. For example: 1.1.
optional
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Rule
impl<'de> Deserialize<'de> for Rule
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
impl StructuralPartialEq for Rule
Auto Trait Implementations§
impl Freeze for Rule
impl RefUnwindSafe for Rule
impl Send for Rule
impl Sync for Rule
impl Unpin for Rule
impl UnwindSafe for Rule
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