pub struct AutoEncryptionProcessor { /* private fields */ }
Expand description
Automatic encryption processor for sensitive data
Implementations§
Source§impl AutoEncryptionProcessor
impl AutoEncryptionProcessor
Sourcepub fn new(workspace_id: &str, config: AutoEncryptionConfig) -> Self
pub fn new(workspace_id: &str, config: AutoEncryptionConfig) -> Self
Create a new auto-encryption processor
Sourcepub fn process_headers(
&self,
headers: &mut HashMap<String, String>,
) -> Result<()>
pub fn process_headers( &self, headers: &mut HashMap<String, String>, ) -> Result<()>
Process headers and encrypt sensitive ones
Sourcepub fn process_json(&self, json: &mut Value) -> Result<()>
pub fn process_json(&self, json: &mut Value) -> Result<()>
Process JSON data and encrypt sensitive fields
Auto Trait Implementations§
impl !Freeze for AutoEncryptionProcessor
impl !RefUnwindSafe for AutoEncryptionProcessor
impl Send for AutoEncryptionProcessor
impl !Sync for AutoEncryptionProcessor
impl Unpin for AutoEncryptionProcessor
impl UnwindSafe for AutoEncryptionProcessor
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