pub struct FieldEncryptionConfig {
pub key_reference: String,
pub algorithm: String,
}Expand description
Encryption configuration for a field in the compiled schema.
Not supported in this release — see the FieldDefinition encryption field. The
write path does not encrypt, so a field carrying this config would be stored in plaintext;
the server refuses to boot rather than do so. This type describes the intended shape
(key reference + algorithm) for when end-to-end field encryption is implemented.
§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 (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 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
impl Eq for FieldEncryptionConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.