pub enum GuardResult {
Safe,
Suspicious(Vec<String>, f64),
Blocked(String),
}Expand description
Pattern detection result
Variants§
Safe
Message is safe
Suspicious(Vec<String>, f64)
Message contains suspicious patterns (with detection details and score)
Blocked(String)
Message should be blocked (with reason)
Trait Implementations§
Source§impl Clone for GuardResult
impl Clone for GuardResult
Source§fn clone(&self) -> GuardResult
fn clone(&self) -> GuardResult
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 GuardResult
impl RefUnwindSafe for GuardResult
impl Send for GuardResult
impl Sync for GuardResult
impl Unpin for GuardResult
impl UnsafeUnpin for GuardResult
impl UnwindSafe for GuardResult
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