pub struct EncryptionMetadata {
pub algorithm: String,
pub kdf: String,
pub salt: String,
pub iv: String,
pub key_version: u32,
}Expand description
Encryption metadata
Fields§
§algorithm: StringAlgorithm used (e.g., “AES-256-GCM”)
kdf: StringKey derivation function
salt: StringSalt for key derivation (base64)
iv: StringInitialization vector (base64)
key_version: u32Key version for rotation
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
Auto Trait Implementations§
impl Freeze for EncryptionMetadata
impl RefUnwindSafe for EncryptionMetadata
impl Send for EncryptionMetadata
impl Sync for EncryptionMetadata
impl Unpin 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