pub struct ColumnEncryptionConfig {
pub enabled: bool,
pub cache_ceks: bool,
pub allow_unsafe_operations: bool,
/* private fields */
}Expand description
Configuration for Always Encrypted.
Fields§
§enabled: boolWhether column encryption is enabled.
cache_ceks: boolCache decrypted CEKs (performance optimization).
allow_unsafe_operations: boolAllow unsafe operations (e.g., queries on encrypted columns without parameterization).
Implementations§
Source§impl ColumnEncryptionConfig
impl ColumnEncryptionConfig
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.
Multiple providers can be registered to support different key stores.
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
Builder method to control 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 ColumnEncryptionConfig
impl Debug for ColumnEncryptionConfig
Source§impl Default for ColumnEncryptionConfig
impl Default for ColumnEncryptionConfig
Source§fn default() -> ColumnEncryptionConfig
fn default() -> ColumnEncryptionConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ColumnEncryptionConfig
impl !RefUnwindSafe for ColumnEncryptionConfig
impl Send for ColumnEncryptionConfig
impl Sync for ColumnEncryptionConfig
impl Unpin for ColumnEncryptionConfig
impl !UnwindSafe for ColumnEncryptionConfig
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