pub struct RuleEvent { /* private fields */ }Implementations§
Source§impl RuleEvent
impl RuleEvent
pub fn applied(rule: impl Into<String>, detail: impl Into<String>) -> RuleEvent
pub fn skipped(rule: impl Into<String>, detail: impl Into<String>) -> RuleEvent
pub fn estimated( rule: impl Into<String>, detail: impl Into<String>, ) -> RuleEvent
pub fn selected(rule: impl Into<String>, detail: impl Into<String>) -> RuleEvent
pub fn new( rule: impl Into<String>, outcome: RuleOutcome, detail: impl Into<String>, ) -> RuleEvent
pub fn rule(&self) -> &str
pub fn outcome(&self) -> RuleOutcome
pub fn detail(&self) -> &str
pub fn into_decision(self) -> String
pub fn from_decision(decision: &str) -> Option<RuleEvent>
Trait Implementations§
impl Eq for RuleEvent
impl StructuralPartialEq for RuleEvent
Auto Trait Implementations§
impl Freeze for RuleEvent
impl RefUnwindSafe for RuleEvent
impl Send for RuleEvent
impl Sync for RuleEvent
impl Unpin for RuleEvent
impl UnsafeUnpin for RuleEvent
impl UnwindSafe for RuleEvent
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