pub struct EncryptedStorageConfig {
pub enabled: bool,
pub opaque_names: bool,
pub key_namespace: Option<String>,
pub key_id: Option<String>,
}Expand description
Configuration for encrypted storage behavior
Fields§
§enabled: boolEnable encryption (and master-key management) for all operations.
This exists primarily for testing and bring-up. Production should keep this true.
opaque_names: boolUse opaque (hashed) file names instead of semantic names
key_namespace: Option<String>Custom namespace for master key in secure storage
key_id: Option<String>Custom key identifier within namespace
Implementations§
Source§impl EncryptedStorageConfig
impl EncryptedStorageConfig
Sourcepub fn with_opaque_names(self) -> Self
pub fn with_opaque_names(self) -> Self
Enable opaque file names derived from the master key and semantic name.
Sourcepub fn with_encryption_enabled(self, enabled: bool) -> Self
pub fn with_encryption_enabled(self, enabled: bool) -> Self
Enable or disable encryption.
Sourcepub fn with_key_namespace(self, namespace: impl Into<String>) -> Self
pub fn with_key_namespace(self, namespace: impl Into<String>) -> Self
Set custom key namespace
Sourcepub fn with_key_id(self, id: impl Into<String>) -> Self
pub fn with_key_id(self, id: impl Into<String>) -> Self
Set custom key identifier
Trait Implementations§
Source§impl Clone for EncryptedStorageConfig
impl Clone for EncryptedStorageConfig
Source§fn clone(&self) -> EncryptedStorageConfig
fn clone(&self) -> EncryptedStorageConfig
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 EncryptedStorageConfig
impl Debug for EncryptedStorageConfig
Auto Trait Implementations§
impl Freeze for EncryptedStorageConfig
impl RefUnwindSafe for EncryptedStorageConfig
impl Send for EncryptedStorageConfig
impl Sync for EncryptedStorageConfig
impl Unpin for EncryptedStorageConfig
impl UnsafeUnpin for EncryptedStorageConfig
impl UnwindSafe for EncryptedStorageConfig
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