pub struct IntakeRule {
pub id: String,
pub name: String,
pub description: String,
pub priority: i32,
pub enabled: bool,
pub conditions: RuleConditions,
pub actions: Vec<RuleAction>,
}Expand description
A rule for processing intake events
Fields§
§id: StringUnique rule ID
name: StringHuman-readable rule name
description: StringRule description
priority: i32Priority (higher = evaluated first)
enabled: boolWhether the rule is enabled
conditions: RuleConditionsConditions that must match
actions: Vec<RuleAction>Actions to apply when matched
Trait Implementations§
Source§impl Clone for IntakeRule
impl Clone for IntakeRule
Source§fn clone(&self) -> IntakeRule
fn clone(&self) -> IntakeRule
Returns a duplicate of the value. Read more
1.0.0 · 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 IntakeRule
impl Debug for IntakeRule
Source§impl<'de> Deserialize<'de> for IntakeRule
impl<'de> Deserialize<'de> for IntakeRule
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 IntakeRule
impl RefUnwindSafe for IntakeRule
impl Send for IntakeRule
impl Sync for IntakeRule
impl Unpin for IntakeRule
impl UnsafeUnpin for IntakeRule
impl UnwindSafe for IntakeRule
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