Struct EqlDecryptOpts
pub struct EqlDecryptOpts<'a> {
pub keyset_id: Option<Uuid>,
pub lock_context: Cow<'a, [Context]>,
pub unverified_context: Option<Cow<'a, UnverifiedContext>>,
}Expand description
Options for EQL decryption operations.
Configuration for decrypt_eql and decrypt_eql_fallible, controlling which keyset to
use and the lock context for key unwrapping.
§Fields
keyset_id- Optional keyset UUID; ifNone, uses the cipher’s default keysetlock_context- Context information for unwrapping encrypted keysunverified_context- Optional unverified context for additional metadata
§Examples
use cipherstash_client::eql::EqlDecryptOpts;
use std::borrow::Cow;
let opts = EqlDecryptOpts {
keyset_id: None, // Use default keyset
lock_context: Cow::Borrowed(&[]),
unverified_context: None,
};Fields§
§keyset_id: Option<Uuid>Keyset to use for all decryption operations.
When set to None, decryption uses the keyset associated with the ZeroKMS client.
lock_context: Cow<'a, [Context]>The lock context to use for decryption operations.
unverified_context: Option<Cow<'a, UnverifiedContext>>Optional unverified context for additional metadata.
Trait Implementations§
§impl<'a> Debug for EqlDecryptOpts<'a>
impl<'a> Debug for EqlDecryptOpts<'a>
§impl<'a> Default for EqlDecryptOpts<'a>
impl<'a> Default for EqlDecryptOpts<'a>
§fn default() -> EqlDecryptOpts<'a>
fn default() -> EqlDecryptOpts<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for EqlDecryptOpts<'a>
impl<'a> RefUnwindSafe for EqlDecryptOpts<'a>
impl<'a> Send for EqlDecryptOpts<'a>
impl<'a> Sync for EqlDecryptOpts<'a>
impl<'a> Unpin for EqlDecryptOpts<'a>
impl<'a> UnsafeUnpin for EqlDecryptOpts<'a>
impl<'a> UnwindSafe for EqlDecryptOpts<'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