pub struct RuleResult {
pub rule_id: String,
pub rule_name: String,
pub matched: bool,
pub action: Option<Action>,
pub stop_processing: bool,
pub eval_time_ns: u64,
}Expand description
Result of evaluating a rule
Fields§
§rule_id: StringRule that matched
rule_name: StringRule name
matched: boolWhether the rule matched
action: Option<Action>Action to execute (if matched)
stop_processing: boolWhether to stop processing more rules
eval_time_ns: u64Evaluation time in nanoseconds
Trait Implementations§
Source§impl Clone for RuleResult
impl Clone for RuleResult
Source§fn clone(&self) -> RuleResult
fn clone(&self) -> RuleResult
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 moreAuto Trait Implementations§
impl Freeze for RuleResult
impl RefUnwindSafe for RuleResult
impl Send for RuleResult
impl Sync for RuleResult
impl Unpin for RuleResult
impl UnsafeUnpin for RuleResult
impl UnwindSafe for RuleResult
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