pub struct RuleExecutionResult {
pub rule_name: String,
pub matched: bool,
pub actions_executed: Vec<String>,
pub execution_time_ms: f64,
}Expand description
Result of rule execution
Fields§
§rule_name: StringThe name of the rule that was executed
matched: boolWhether the rule’s conditions matched and it fired
actions_executed: Vec<String>List of actions that were executed
execution_time_ms: f64Time taken to execute the rule in milliseconds
Implementations§
Source§impl RuleExecutionResult
impl RuleExecutionResult
Sourcepub fn with_actions(self, actions: Vec<String>) -> Self
pub fn with_actions(self, actions: Vec<String>) -> Self
Set the actions that were executed
Sourcepub fn with_execution_time(self, time_ms: f64) -> Self
pub fn with_execution_time(self, time_ms: f64) -> Self
Set the execution time in milliseconds
Trait Implementations§
Source§impl Clone for RuleExecutionResult
impl Clone for RuleExecutionResult
Source§fn clone(&self) -> RuleExecutionResult
fn clone(&self) -> RuleExecutionResult
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 moreAuto Trait Implementations§
impl Freeze for RuleExecutionResult
impl RefUnwindSafe for RuleExecutionResult
impl Send for RuleExecutionResult
impl Sync for RuleExecutionResult
impl Unpin for RuleExecutionResult
impl UnwindSafe for RuleExecutionResult
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