pub struct EncryptedData(/* private fields */);Expand description
Encrypted content.
A distinct type from WrappedKey deliberately. The bytes of a container
are the same whether the content was a key or a document; what differs is
the claim the ceremony made about it, so a document that reached the
artifact store cannot be handed to a step that installs keys.
Implementations§
Source§impl EncryptedData
impl EncryptedData
Sourcepub fn new(
scheme: WrapScheme,
description: WrapDescription,
data: Vec<u8>,
) -> Result<Self, IncoherentContainer>
pub fn new( scheme: WrapScheme, description: WrapDescription, data: Vec<u8>, ) -> Result<Self, IncoherentContainer>
Pair encrypted content with the scheme and the description of what was done.
§Errors
Returns IncoherentContainer if the scheme does not admit the
description.
Sourcepub fn scheme(&self) -> WrapScheme
pub fn scheme(&self) -> WrapScheme
The scheme encrypted content went into.
Sourcepub fn description(&self) -> &WrapDescription
pub fn description(&self) -> &WrapDescription
What the operation did, read back from the artifact.
Trait Implementations§
Source§impl Clone for EncryptedData
impl Clone for EncryptedData
Source§impl Debug for EncryptedData
impl Debug for EncryptedData
Source§impl<'de> Deserialize<'de> for EncryptedData
impl<'de> Deserialize<'de> for EncryptedData
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
Auto Trait Implementations§
impl Freeze for EncryptedData
impl RefUnwindSafe for EncryptedData
impl Send for EncryptedData
impl Sync for EncryptedData
impl Unpin for EncryptedData
impl UnsafeUnpin for EncryptedData
impl UnwindSafe for EncryptedData
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