pub struct EncryptionConfig {
pub rules: Vec<FieldRule>,
pub default_key_id: String,
pub enabled: bool,
pub aad_prefix: String,
}Expand description
Configuration for field encryption.
Fields§
§rules: Vec<FieldRule>Field encryption rules
default_key_id: StringDefault key ID
enabled: boolEnable encryption (can be disabled for testing)
aad_prefix: StringAAD (additional authenticated data) prefix
Implementations§
Source§impl EncryptionConfig
impl EncryptionConfig
pub fn builder() -> EncryptionConfigBuilder
Sourcepub fn rules_for_table(&self, table: &str) -> Vec<&FieldRule>
pub fn rules_for_table(&self, table: &str) -> Vec<&FieldRule>
Get rules for a table.
Sourcepub fn fields_for_table(&self, table: &str) -> HashSet<String>
pub fn fields_for_table(&self, table: &str) -> HashSet<String>
Get fields to encrypt for a table.
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 · 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§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 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