pub enum GuardAction {
Warn,
Block,
Sanitize,
}Expand description
Action to take when suspicious content is detected
Variants§
Warn
Log warning but allow the message
Block
Block the message with an error
Sanitize
Sanitize by removing/escaping dangerous patterns
Implementations§
Trait Implementations§
Source§impl Clone for GuardAction
impl Clone for GuardAction
Source§fn clone(&self) -> GuardAction
fn clone(&self) -> GuardAction
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 GuardAction
impl Debug for GuardAction
Source§impl PartialEq for GuardAction
impl PartialEq for GuardAction
impl Copy for GuardAction
impl Eq for GuardAction
impl StructuralPartialEq for GuardAction
Auto Trait Implementations§
impl Freeze for GuardAction
impl RefUnwindSafe for GuardAction
impl Send for GuardAction
impl Sync for GuardAction
impl Unpin for GuardAction
impl UnsafeUnpin for GuardAction
impl UnwindSafe for GuardAction
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.