Struct RetrieveKeyPayload
pub struct RetrieveKeyPayload<'a> {
pub iv: KeyId,
pub descriptor: &'a str,
pub tag: &'a [u8],
pub context: Cow<'a, [Context]>,
pub decryption_policy: Option<DecryptionPolicy>,
}Expand description
The requirements for retrieving a data key from Vitur.
Fields§
§iv: KeyId§descriptor: &'a str§tag: &'a [u8]§context: Cow<'a, [Context]>§decryption_policy: Option<DecryptionPolicy>Implementations§
§impl<'a> RetrieveKeyPayload<'a>
impl<'a> RetrieveKeyPayload<'a>
pub fn new(iv: Iv, descriptor: &'a str, tag: &'a [u8]) -> Self
pub fn new(iv: Iv, descriptor: &'a str, tag: &'a [u8]) -> Self
Create a new RetrieveKeyPayload with the given IV, descriptor, and tag.
pub fn with_context(self, context: Cow<'a, [Context]>) -> Self
pub fn with_decryption_policy(self, policy: DecryptionPolicy) -> Self
Trait Implementations§
§impl<'a> From<&'a EncryptedRecord> for RetrieveKeyPayload<'a>
impl<'a> From<&'a EncryptedRecord> for RetrieveKeyPayload<'a>
§fn from(record: &'a EncryptedRecord) -> Self
fn from(record: &'a EncryptedRecord) -> Self
Converts to this type from the input type.
§impl<'a, 'context> From<&'a WithContext<'context>> for RetrieveKeyPayload<'a>
impl<'a, 'context> From<&'a WithContext<'context>> for RetrieveKeyPayload<'a>
§fn from(with_context: &'a WithContext<'_>) -> Self
fn from(with_context: &'a WithContext<'_>) -> Self
Converts to this type from the input type.
§impl<'a> From<RetrieveKeyPayload<'a>> for RetrieveKeySpec<'a>
impl<'a> From<RetrieveKeyPayload<'a>> for RetrieveKeySpec<'a>
§fn from(_: RetrieveKeyPayload<'a>) -> Self
fn from(_: RetrieveKeyPayload<'a>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> Freeze for RetrieveKeyPayload<'a>
impl<'a> RefUnwindSafe for RetrieveKeyPayload<'a>
impl<'a> Send for RetrieveKeyPayload<'a>
impl<'a> Sync for RetrieveKeyPayload<'a>
impl<'a> Unpin for RetrieveKeyPayload<'a>
impl<'a> UnsafeUnpin for RetrieveKeyPayload<'a>
impl<'a> UnwindSafe for RetrieveKeyPayload<'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