pub enum RuleResult {
Allow,
Deny(String),
Modified(HashMap<String, String>),
Skipped,
Failed(String),
}Expand description
Result of rule execution
Variants§
Allow
Rule conditions were met and actions executed successfully
Deny(String)
Rule conditions were met but execution was denied
Modified(HashMap<String, String>)
Rule execution resulted in modifications
Skipped
Rule execution was skipped (conditions not met)
Failed(String)
Rule execution failed
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 · 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 RuleResult
impl Debug for RuleResult
Source§impl<'de> Deserialize<'de> for RuleResult
impl<'de> Deserialize<'de> for RuleResult
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
Source§impl Display for RuleResult
impl Display for RuleResult
Auto Trait Implementations§
impl Freeze for RuleResult
impl RefUnwindSafe for RuleResult
impl Send for RuleResult
impl Sync for RuleResult
impl Unpin 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