pub enum ObscureType {
Elided,
Encrypted,
Compressed,
}Expand description
Types of obscuration that can be applied to envelope elements.
This enum identifies the different ways an envelope element can be obscured.
Unlike ObscureAction which is used to perform obscuration operations,
ObscureType is used to identify and filter elements based on their
obscuration state.
Variants§
Elided
The element has been elided, showing only its digest.
Encrypted
The element has been encrypted using symmetric encryption.
This variant is only available when the encrypt feature is enabled.
Compressed
The element has been compressed to reduce its size.
This variant is only available when the compress feature is enabled.
Trait Implementations§
Source§impl Clone for ObscureType
impl Clone for ObscureType
Source§fn clone(&self) -> ObscureType
fn clone(&self) -> ObscureType
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 ObscureType
impl Debug for ObscureType
Source§impl Hash for ObscureType
impl Hash for ObscureType
Source§impl PartialEq for ObscureType
impl PartialEq for ObscureType
impl Copy for ObscureType
impl Eq for ObscureType
impl StructuralPartialEq for ObscureType
Auto Trait Implementations§
impl Freeze for ObscureType
impl RefUnwindSafe for ObscureType
impl Send for ObscureType
impl Sync for ObscureType
impl Unpin for ObscureType
impl UnwindSafe for ObscureType
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more