pub struct FieldEncryptionConfig {
pub key_reference: String,
pub algorithm: String,
}Expand description
Encryption configuration for a field in the compiled schema.
Specifies how a field should be encrypted at rest. The key is fetched
from the configured secrets backend (Vault, environment, or file) using
the key_reference path.
§Example
use fraiseql_core::schema::FieldEncryptionConfig;
let config = FieldEncryptionConfig {
key_reference: "keys/user-email".to_string(),
algorithm: "AES-256-GCM".to_string(),
};Fields§
§key_reference: StringPath or name for fetching the encryption key from the secrets backend.
algorithm: StringEncryption algorithm identifier.
Trait Implementations§
Source§impl Clone for FieldEncryptionConfig
impl Clone for FieldEncryptionConfig
Source§fn clone(&self) -> FieldEncryptionConfig
fn clone(&self) -> FieldEncryptionConfig
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 FieldEncryptionConfig
impl Debug for FieldEncryptionConfig
Source§impl<'de> Deserialize<'de> for FieldEncryptionConfig
impl<'de> Deserialize<'de> for FieldEncryptionConfig
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
Source§impl PartialEq for FieldEncryptionConfig
impl PartialEq for FieldEncryptionConfig
Source§impl Serialize for FieldEncryptionConfig
impl Serialize for FieldEncryptionConfig
impl StructuralPartialEq for FieldEncryptionConfig
Auto Trait Implementations§
impl Freeze for FieldEncryptionConfig
impl RefUnwindSafe for FieldEncryptionConfig
impl Send for FieldEncryptionConfig
impl Sync for FieldEncryptionConfig
impl Unpin for FieldEncryptionConfig
impl UnsafeUnpin for FieldEncryptionConfig
impl UnwindSafe for FieldEncryptionConfig
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