Struct GenerateKeyPayload
pub struct GenerateKeyPayload<'a> {
pub descriptor: &'a str,
pub decryption_policy: Option<DecryptionPolicy>,
/* private fields */
}Expand description
The requirements for generating a data key from Vitur.
Fields§
§descriptor: &'a str§decryption_policy: Option<DecryptionPolicy>Implementations§
§impl<'a> GenerateKeyPayload<'a>
impl<'a> GenerateKeyPayload<'a>
pub fn new(descriptor: &'a str, context: Cow<'a, [Context]>) -> Self
pub fn new(descriptor: &'a str, context: Cow<'a, [Context]>) -> Self
Create a new GenerateKeyPayload with the given descriptor and context.
pub fn with_decryption_policy(self, policy: DecryptionPolicy) -> Self
Trait Implementations§
§impl<'a> Clone for GenerateKeyPayload<'a>
impl<'a> Clone for GenerateKeyPayload<'a>
§fn clone(&self) -> GenerateKeyPayload<'a>
fn clone(&self) -> GenerateKeyPayload<'a>
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 more§impl<'a> From<&'a EncryptPayload<'a>> for GenerateKeyPayload<'a>
impl<'a> From<&'a EncryptPayload<'a>> for GenerateKeyPayload<'a>
§fn from(payload: &'a EncryptPayload<'a>) -> Self
fn from(payload: &'a EncryptPayload<'a>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> Freeze for GenerateKeyPayload<'a>
impl<'a> RefUnwindSafe for GenerateKeyPayload<'a>
impl<'a> Send for GenerateKeyPayload<'a>
impl<'a> Sync for GenerateKeyPayload<'a>
impl<'a> Unpin for GenerateKeyPayload<'a>
impl<'a> UnsafeUnpin for GenerateKeyPayload<'a>
impl<'a> UnwindSafe for GenerateKeyPayload<'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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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