pub struct EncryptionConfig {
pub enabled: bool,
pub algorithm: String,
pub kdf_iterations: u32,
pub master_salt: String,
}Fields§
§enabled: bool§algorithm: String§kdf_iterations: u32§master_salt: StringLong-lived random salt for master-key derivation. Persisted in
meta/config.json. Hex-encoded so the config remains human-readable.
Set on first open of an encryption-enabled database; never rotated.
Rotating the password (via Database::rotate_encryption_key)
rewrites every ciphertext but leaves master_salt unchanged.
Trait Implementations§
Source§impl Clone for EncryptionConfig
impl Clone for EncryptionConfig
Source§fn clone(&self) -> EncryptionConfig
fn clone(&self) -> EncryptionConfig
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 EncryptionConfig
impl Debug for EncryptionConfig
Source§impl Default for EncryptionConfig
impl Default for EncryptionConfig
Source§impl<'de> Deserialize<'de> for EncryptionConfig
impl<'de> Deserialize<'de> for EncryptionConfig
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 EncryptionConfig
impl PartialEq for EncryptionConfig
Source§fn eq(&self, other: &EncryptionConfig) -> bool
fn eq(&self, other: &EncryptionConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for EncryptionConfig
impl Serialize for EncryptionConfig
impl Eq for EncryptionConfig
impl StructuralPartialEq for EncryptionConfig
Auto Trait Implementations§
impl Freeze for EncryptionConfig
impl RefUnwindSafe for EncryptionConfig
impl Send for EncryptionConfig
impl Sync for EncryptionConfig
impl Unpin for EncryptionConfig
impl UnsafeUnpin for EncryptionConfig
impl UnwindSafe for EncryptionConfig
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