pub struct EnvelopedData<'a> {
pub version: u64,
pub originator: Option<OriginatorInfo<'a>>,
pub recipients: OwnedVec<Recipient<'a>>,
pub content: EncryptedContent<'a>,
pub unprotected: Option<OwnedVec<Attribute<'a>>>,
/* private fields */
}Expand description
Complete EnvelopedData schema with original nested decoding context.
Fields§
§version: u64Declared version, checked against all encoded choices before return.
originator: Option<OriginatorInfo<'a>>Optional originator certificates and revocation material.
recipients: OwnedVec<Recipient<'a>>Every original recipient, in source SET order.
content: EncryptedContent<'a>Original plaintext type, encryption parameters and ciphertext ranges.
unprotected: Option<OwnedVec<Attribute<'a>>>Unauthenticated/unprotected attributes, never promoted to signed facts.
Implementations§
Source§impl<'a> EnvelopedData<'a>
impl<'a> EnvelopedData<'a>
Sourcepub fn read(parent: &mut Reader<'a>) -> Result<Self>
pub fn read(parent: &mut Reader<'a>) -> Result<Self>
Read one complete ContentInfo with the enveloped-data content type.
Sourcepub fn read_content_info(
parent: &Reader<'a>,
element: &Element<'a>,
) -> Result<Self>
pub fn read_content_info( parent: &Reader<'a>, element: &Element<'a>, ) -> Result<Self>
Read one original embedded ContentInfo without rebuilding its encoding.
Sourcepub fn read_element(parent: &Reader<'a>, element: &Element<'a>) -> Result<Self>
pub fn read_element(parent: &Reader<'a>, element: &Element<'a>) -> Result<Self>
Read the original EnvelopedData SEQUENCE, retaining its source/depth.
Sourcepub fn element(&self) -> &Element<'a>
pub fn element(&self) -> &Element<'a>
Whole original encoding, not reconstructed plaintext or trusted content.
Sourcepub fn execution_in<'op, W: Work>(&self, current: &'op W) -> Execution<'op>where
'a: 'op,
pub fn execution_in<'op, W: Work>(&self, current: &'op W) -> Execution<'op>where
'a: 'op,
Original/current execution for a selected provider’s new work.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !Freeze for EnvelopedData<'a>
impl<'a> !RefUnwindSafe for EnvelopedData<'a>
impl<'a> !Send for EnvelopedData<'a>
impl<'a> !Sync for EnvelopedData<'a>
impl<'a> !UnwindSafe for EnvelopedData<'a>
impl<'a> Unpin for EnvelopedData<'a>
impl<'a> UnsafeUnpin for EnvelopedData<'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