pub struct EncryptionConfigBuilder { /* private fields */ }Expand description
Builder for EncryptionConfig.
Implementations§
Source§impl EncryptionConfigBuilder
impl EncryptionConfigBuilder
pub fn new() -> Self
Sourcepub fn encrypt_field(
self,
table: impl Into<String>,
field: impl Into<String>,
) -> Self
pub fn encrypt_field( self, table: impl Into<String>, field: impl Into<String>, ) -> Self
Add a field encryption rule.
Sourcepub fn encrypt_field_with(
self,
table: impl Into<String>,
field: impl Into<String>,
algorithm: EncryptionAlgorithm,
) -> Self
pub fn encrypt_field_with( self, table: impl Into<String>, field: impl Into<String>, algorithm: EncryptionAlgorithm, ) -> Self
Add a field rule with custom algorithm.
Sourcepub fn default_key_id(self, key_id: impl Into<String>) -> Self
pub fn default_key_id(self, key_id: impl Into<String>) -> Self
Set default key ID.
Sourcepub fn aad_prefix(self, prefix: impl Into<String>) -> Self
pub fn aad_prefix(self, prefix: impl Into<String>) -> Self
Set AAD prefix.
pub fn build(self) -> EncryptionConfig
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EncryptionConfigBuilder
impl RefUnwindSafe for EncryptionConfigBuilder
impl Send for EncryptionConfigBuilder
impl Sync for EncryptionConfigBuilder
impl Unpin for EncryptionConfigBuilder
impl UnsafeUnpin for EncryptionConfigBuilder
impl UnwindSafe for EncryptionConfigBuilder
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