pub enum Safe<'a> {
Data(Octets<'a>),
Encrypted(EncryptedData<'a>),
Enveloped(EnvelopedData<'a>),
Other {
kind: Oid<'a>,
value: EncodedValue<'a>,
},
}Expand description
One protected AuthenticatedSafe member. Unrecognized content stays explicit.
Variants§
Data(Octets<'a>)
Unencrypted SafeContents BER encoding, including its SEQUENCE TLV.
Encrypted(EncryptedData<'a>)
Password-encrypted SafeContents.
Enveloped(EnvelopedData<'a>)
Public-key encrypted SafeContents, reusing all common recipient types.
Other
An open content type without a schema owned by this format.
Fields
§
value: EncodedValue<'a>Original inner value and producing context.
Implementations§
Auto Trait Implementations§
impl<'a> !Freeze for Safe<'a>
impl<'a> !RefUnwindSafe for Safe<'a>
impl<'a> !Send for Safe<'a>
impl<'a> !Sync for Safe<'a>
impl<'a> !UnwindSafe for Safe<'a>
impl<'a> Unpin for Safe<'a>
impl<'a> UnsafeUnpin for Safe<'a>
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