pub struct EncryptionMeta {
pub algorithm: EncryptionAlgorithm,
pub key_commitment: Option<[u8; 32]>,
pub nonce: Option<Vec<u8>>,
}Expand description
Encryption metadata for attachments
Fields§
§algorithm: EncryptionAlgorithmEncryption algorithm used
key_commitment: Option<[u8; 32]>Commitment to the encryption key (for key escrow/recovery)
nonce: Option<Vec<u8>>Nonce/IV if applicable
Trait Implementations§
Source§impl Clone for EncryptionMeta
impl Clone for EncryptionMeta
Source§fn clone(&self) -> EncryptionMeta
fn clone(&self) -> EncryptionMeta
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 EncryptionMeta
impl Debug for EncryptionMeta
Source§impl<'de> Deserialize<'de> for EncryptionMeta
impl<'de> Deserialize<'de> for EncryptionMeta
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 EncryptionMeta
impl PartialEq for EncryptionMeta
Source§fn eq(&self, other: &EncryptionMeta) -> bool
fn eq(&self, other: &EncryptionMeta) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for EncryptionMeta
impl Serialize for EncryptionMeta
impl Eq for EncryptionMeta
impl StructuralPartialEq for EncryptionMeta
Auto Trait Implementations§
impl Freeze for EncryptionMeta
impl RefUnwindSafe for EncryptionMeta
impl Send for EncryptionMeta
impl Sync for EncryptionMeta
impl Unpin for EncryptionMeta
impl UnsafeUnpin for EncryptionMeta
impl UnwindSafe for EncryptionMeta
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