pub struct AutoEncryptionConfig {
pub enabled: bool,
pub sensitive_headers: Vec<String>,
pub sensitive_fields: Vec<String>,
pub sensitive_env_vars: Vec<String>,
pub sensitive_patterns: Vec<String>,
}
Expand description
Configuration for automatic encryption of sensitive fields
Fields§
§enabled: bool
Whether automatic encryption is enabled
sensitive_headers: Vec<String>
List of header names to automatically encrypt
sensitive_fields: Vec<String>
List of JSON field paths to automatically encrypt in request/response bodies
sensitive_env_vars: Vec<String>
List of environment variable names to automatically encrypt
sensitive_patterns: Vec<String>
Custom patterns for detecting sensitive data (regex)
Trait Implementations§
Source§impl Clone for AutoEncryptionConfig
impl Clone for AutoEncryptionConfig
Source§fn clone(&self) -> AutoEncryptionConfig
fn clone(&self) -> AutoEncryptionConfig
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 AutoEncryptionConfig
impl Debug for AutoEncryptionConfig
Source§impl Default for AutoEncryptionConfig
impl Default for AutoEncryptionConfig
Source§impl<'de> Deserialize<'de> for AutoEncryptionConfig
impl<'de> Deserialize<'de> for AutoEncryptionConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AutoEncryptionConfig
impl RefUnwindSafe for AutoEncryptionConfig
impl Send for AutoEncryptionConfig
impl Sync for AutoEncryptionConfig
impl Unpin for AutoEncryptionConfig
impl UnwindSafe for AutoEncryptionConfig
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