Struct EqlEncryptOpts
pub struct EqlEncryptOpts<'a> {
pub keyset_id: Option<Uuid>,
pub lock_context: Cow<'a, [Context]>,
pub unverified_context: Option<Cow<'a, UnverifiedContext>>,
pub index_types: Option<Cow<'a, [IndexType]>>,
pub decryption_policy: Option<DecryptionPolicy>,
}Expand description
Options for EQL encryption operations.
Configuration for encrypt_eql, controlling which keyset to use, the lock context for key
wrapping, and which indexes to generate.
§Fields
keyset_id- Optional keyset UUID; ifNone, uses the cipher’s default keysetlock_context- Context information for wrapping data encryption keysunverified_context- Optional unverified context for additional metadataindex_types- Optional filter to generate only specific index types instead of all configured indexesdecryption_policy- Optional decryption policy for OR-style lock context
§Examples
use cipherstash_client::eql::EqlEncryptOpts;
use std::borrow::Cow;
// Use default options (all indexes, default keyset)
let opts = EqlEncryptOpts::default();
// Or customize
let opts = EqlEncryptOpts {
keyset_id: None,
lock_context: Cow::Owned(vec![]),
unverified_context: None,
index_types: Some(Cow::Owned(vec![IndexType::Ore])), // Generate only ORE indexes
decryption_policy: None,
};Fields§
§keyset_id: Option<Uuid>Keyset to use for all encryption operations.
When set to None, encryption uses the keyset associated with the ZeroKMS client.
lock_context: Cow<'a, [Context]>The lock context to use for encryption operations.
unverified_context: Option<Cow<'a, UnverifiedContext>>Optional unverified context for additional metadata.
index_types: Option<Cow<'a, [IndexType]>>Optional filter to generate only specific index types.
When present, generate only the specified index types instead of all index types specified in the column configuration.
decryption_policy: Option<DecryptionPolicy>Optional decryption policy for OR-style lock context.
When set, tag_version = 1 is used instead of the lock_context field.
Trait Implementations§
§impl<'a> Debug for EqlEncryptOpts<'a>
impl<'a> Debug for EqlEncryptOpts<'a>
§impl<'a> Default for EqlEncryptOpts<'a>
impl<'a> Default for EqlEncryptOpts<'a>
§fn default() -> EqlEncryptOpts<'a>
fn default() -> EqlEncryptOpts<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for EqlEncryptOpts<'a>
impl<'a> RefUnwindSafe for EqlEncryptOpts<'a>
impl<'a> Send for EqlEncryptOpts<'a>
impl<'a> Sync for EqlEncryptOpts<'a>
impl<'a> Unpin for EqlEncryptOpts<'a>
impl<'a> UnsafeUnpin for EqlEncryptOpts<'a>
impl<'a> UnwindSafe for EqlEncryptOpts<'a>
Blanket Implementations§
impl<T> AuthStrategyBounds for T
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more