pub enum SafeMetadataDecision {
Allow,
Redact,
Reject,
}Expand description
Safe metadata decision recorded after server-side sanitization.
Variants§
Allow
Metadata is safe and stored as-is within the configured length bound.
Redact
Metadata was deterministically redacted before storage or response.
Reject
Metadata must not persist.
Trait Implementations§
Source§impl Clone for SafeMetadataDecision
impl Clone for SafeMetadataDecision
Source§fn clone(&self) -> SafeMetadataDecision
fn clone(&self) -> SafeMetadataDecision
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 SafeMetadataDecision
Source§impl Debug for SafeMetadataDecision
impl Debug for SafeMetadataDecision
Source§impl<'de> Deserialize<'de> for SafeMetadataDecision
impl<'de> Deserialize<'de> for SafeMetadataDecision
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SafeMetadataDecision, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SafeMetadataDecision, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SafeMetadataDecision
Source§impl Ord for SafeMetadataDecision
impl Ord for SafeMetadataDecision
Source§fn cmp(&self, other: &SafeMetadataDecision) -> Ordering
fn cmp(&self, other: &SafeMetadataDecision) -> Ordering
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
Source§impl PartialEq for SafeMetadataDecision
impl PartialEq for SafeMetadataDecision
Source§fn eq(&self, other: &SafeMetadataDecision) -> bool
fn eq(&self, other: &SafeMetadataDecision) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for SafeMetadataDecision
impl PartialOrd for SafeMetadataDecision
Source§impl Serialize for SafeMetadataDecision
impl Serialize for SafeMetadataDecision
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for SafeMetadataDecision
Auto Trait Implementations§
impl Freeze for SafeMetadataDecision
impl RefUnwindSafe for SafeMetadataDecision
impl Send for SafeMetadataDecision
impl Sync for SafeMetadataDecision
impl Unpin for SafeMetadataDecision
impl UnsafeUnpin for SafeMetadataDecision
impl UnwindSafe for SafeMetadataDecision
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