pub enum GuardAction {
Allow,
Block,
Sanitize,
Log,
Alert,
Suggest,
}Expand description
Action to take when a guard triggers
Variants§
Allow
Allow the content to pass through
Block
Block the content entirely
Sanitize
Sanitize/redact the content
Log
Log and allow
Alert
Raise an alert
Suggest
Suggest improvements, don’t block
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 Default for GuardAction
impl Default for GuardAction
Source§fn default() -> GuardAction
fn default() -> GuardAction
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GuardAction
impl<'de> Deserialize<'de> for GuardAction
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 PartialEq for GuardAction
impl PartialEq for GuardAction
Source§impl Serialize for GuardAction
impl Serialize 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 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