pub enum ContextDispositionV1 {
Allow,
AllowMinimized,
AllowRedacted,
AllowSummaryOnly,
AllowLocalModelOnly,
AllowWithApproval,
Quarantine,
Deny,
}Expand description
Per-object outcome, ordered from least to most restrictive.
Variants§
Allow
AllowMinimized
AllowRedacted
AllowSummaryOnly
AllowLocalModelOnly
AllowWithApproval
Held until an approver releases it; not delivered meanwhile.
Quarantine
Deny
Implementations§
Source§impl ContextDispositionV1
impl ContextDispositionV1
Sourcepub fn delivers_content(self) -> bool
pub fn delivers_content(self) -> bool
Whether content (possibly transformed) reaches the destination now.
Sourcepub fn most_restrictive(self, other: Self) -> Self
pub fn most_restrictive(self, other: Self) -> Self
Combining two rules keeps the stricter outcome.
Trait Implementations§
Source§impl Clone for ContextDispositionV1
impl Clone for ContextDispositionV1
impl Copy for ContextDispositionV1
Source§impl Debug for ContextDispositionV1
impl Debug for ContextDispositionV1
Source§impl<'de> Deserialize<'de> for ContextDispositionV1
impl<'de> Deserialize<'de> for ContextDispositionV1
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 ContextDispositionV1
Source§impl From<ContextDispositionV1> for ContextDecisionOutcomeV1
impl From<ContextDispositionV1> for ContextDecisionOutcomeV1
Source§fn from(value: ContextDispositionV1) -> Self
fn from(value: ContextDispositionV1) -> Self
Converts to this type from the input type.
Source§impl Hash for ContextDispositionV1
impl Hash for ContextDispositionV1
Source§impl Ord for ContextDispositionV1
impl Ord for ContextDispositionV1
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ContextDispositionV1
impl PartialEq for ContextDispositionV1
Source§impl PartialOrd for ContextDispositionV1
impl PartialOrd for ContextDispositionV1
Source§impl Serialize for ContextDispositionV1
impl Serialize for ContextDispositionV1
impl StructuralPartialEq for ContextDispositionV1
Auto Trait Implementations§
impl Freeze for ContextDispositionV1
impl RefUnwindSafe for ContextDispositionV1
impl Send for ContextDispositionV1
impl Sync for ContextDispositionV1
impl Unpin for ContextDispositionV1
impl UnsafeUnpin for ContextDispositionV1
impl UnwindSafe for ContextDispositionV1
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