pub enum TrifectaPolicy {
Block,
Ask,
Allow,
}Variants§
Block
Refuse the send outright. The default.
Ask
Ask a human. Only meaningful when someone is watching.
Allow
Allow it. Appropriate only when the “untrusted” content is in fact trusted — e.g. an allowlist of internal hosts.
Trait Implementations§
Source§impl Clone for TrifectaPolicy
impl Clone for TrifectaPolicy
Source§fn clone(&self) -> TrifectaPolicy
fn clone(&self) -> TrifectaPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TrifectaPolicy
Source§impl Debug for TrifectaPolicy
impl Debug for TrifectaPolicy
Source§impl<'de> Deserialize<'de> for TrifectaPolicy
impl<'de> Deserialize<'de> for TrifectaPolicy
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
impl Eq for TrifectaPolicy
Source§impl PartialEq for TrifectaPolicy
impl PartialEq for TrifectaPolicy
Source§impl Serialize for TrifectaPolicy
impl Serialize for TrifectaPolicy
impl StructuralPartialEq for TrifectaPolicy
Auto Trait Implementations§
impl Freeze for TrifectaPolicy
impl RefUnwindSafe for TrifectaPolicy
impl Send for TrifectaPolicy
impl Sync for TrifectaPolicy
impl Unpin for TrifectaPolicy
impl UnsafeUnpin for TrifectaPolicy
impl UnwindSafe for TrifectaPolicy
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