pub struct EncryptionConfig {
pub cipher: CipherKind,
pub key_id: String,
pub key: String,
pub decrypt_keys: HashMap<String, String>,
}Expand description
AEAD encryption settings, shared by the encryption middleware (per-message
payload encryption) and the at-rest encryption field of the file and
object_store endpoints. Requires the encryption feature.
Fields§
§cipher: CipherKindAEAD cipher. Defaults to xchacha20poly1305.
key_id: StringKey identifier written into each envelope; selects the key when decrypting. Defaults to default.
key: StringBase64-encoded 32-byte key. Supports ${env:VAR} to read it from the environment.
decrypt_keys: HashMap<String, String>Extra key_id -> base64 key entries accepted when decrypting (key rotation).
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§impl<'de> Deserialize<'de> for EncryptionConfig
impl<'de> Deserialize<'de> for EncryptionConfig
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
impl Eq for EncryptionConfig
Source§impl PartialEq for EncryptionConfig
impl PartialEq for EncryptionConfig
Source§impl SecretExtractor for EncryptionConfig
impl SecretExtractor for EncryptionConfig
Source§impl Serialize for EncryptionConfig
impl Serialize for EncryptionConfig
impl StructuralPartialEq for EncryptionConfig
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