pub struct EncryptionMetadata {
pub algorithm: EncryptionAlgorithm,
pub kdf: Option<KeyDerivation>,
pub wrapped_key: Option<String>,
pub key_management: Option<KeyManagementAlgorithm>,
pub recipients: Vec<Recipient>,
}Available on crate features
signatures and encryption only.Expand description
Encryption metadata stored in the document.
Fields§
§algorithm: EncryptionAlgorithmEncryption algorithm used.
kdf: Option<KeyDerivation>Key derivation function (if password-based).
wrapped_key: Option<String>Encrypted content key (if key wrapping is used).
key_management: Option<KeyManagementAlgorithm>Key management algorithm (for key wrapping).
recipients: Vec<Recipient>Recipients who can decrypt (for multi-recipient encryption).
Trait Implementations§
Source§impl Clone for EncryptionMetadata
impl Clone for EncryptionMetadata
Source§fn clone(&self) -> EncryptionMetadata
fn clone(&self) -> EncryptionMetadata
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 EncryptionMetadata
impl Debug for EncryptionMetadata
Source§impl<'de> Deserialize<'de> for EncryptionMetadata
impl<'de> Deserialize<'de> for EncryptionMetadata
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
Source§impl PartialEq for EncryptionMetadata
impl PartialEq for EncryptionMetadata
Source§impl Serialize for EncryptionMetadata
impl Serialize for EncryptionMetadata
impl Eq for EncryptionMetadata
impl StructuralPartialEq for EncryptionMetadata
Auto Trait Implementations§
impl Freeze for EncryptionMetadata
impl RefUnwindSafe for EncryptionMetadata
impl Send for EncryptionMetadata
impl Sync for EncryptionMetadata
impl Unpin for EncryptionMetadata
impl UnsafeUnpin for EncryptionMetadata
impl UnwindSafe for EncryptionMetadata
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.