pub struct EncryptionConfig {
pub keys: HashMap<String, Vec<u8>>,
pub key_id_columns: HashMap<String, String>,
}Expand description
§5.11 client-side encryption keys (keyId → 32-byte key) plus optional
key selection. Empty ⇒ E2EE off. key_id_for defaults to per-table
(keyId = table). Always present on the client; the crypto is compiled
only under the e2ee feature.
Fields§
§keys: HashMap<String, Vec<u8>>§key_id_columns: HashMap<String, String>Portable per-table selector: the named non-encrypted string column in each plaintext row contains the key id used for new envelopes.
Implementations§
Source§impl EncryptionConfig
impl EncryptionConfig
pub fn is_empty(&self) -> bool
Sourcepub fn key_id_for(
&self,
table: &TableSchema,
row: &Row,
) -> Result<String, String>
pub fn key_id_for( &self, table: &TableSchema, row: &Row, ) -> Result<String, String>
§5.11 portable key selection: configured row column, then table name.
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 (const: unstable) · 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