pub struct EncryptionConfig {
pub enabled: bool,
pub cache_ceks: bool,
/* private fields */
}Expand description
Configuration for Always Encrypted feature.
Fields§
§enabled: boolWhether encryption is enabled.
cache_ceks: boolWhether to cache decrypted CEKs for performance.
Implementations§
Source§impl EncryptionConfig
impl EncryptionConfig
Sourcepub fn register_provider(&mut self, provider: impl KeyStoreProvider + 'static)
pub fn register_provider(&mut self, provider: impl KeyStoreProvider + 'static)
Register a key store provider.
Sourcepub fn with_provider(self, provider: impl KeyStoreProvider + 'static) -> Self
pub fn with_provider(self, provider: impl KeyStoreProvider + 'static) -> Self
Builder method to add a key store provider.
Sourcepub fn with_cek_caching(self, enabled: bool) -> Self
pub fn with_cek_caching(self, enabled: bool) -> Self
Enable or disable CEK caching.
Sourcepub fn get_provider(&self, name: &str) -> Option<&dyn KeyStoreProvider>
pub fn get_provider(&self, name: &str) -> Option<&dyn KeyStoreProvider>
Get a provider by name.
Trait Implementations§
Source§impl Debug for EncryptionConfig
impl Debug for EncryptionConfig
Source§impl Default for EncryptionConfig
impl Default for EncryptionConfig
Source§fn default() -> EncryptionConfig
fn default() -> EncryptionConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EncryptionConfig
impl !RefUnwindSafe for EncryptionConfig
impl Send for EncryptionConfig
impl Sync for EncryptionConfig
impl Unpin 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