pub struct DecryptionKeyOptions {
pub decrypt: bool,
pub unwrap: bool,
pub extractable: bool,
}Expand description
Mint-time policy for a DecryptionKey. See MacKeyOptions for the
options contract. The two grants separate disclosure from minting:
decrypt returns plaintext to the caller, while unwrap mints keys
whose material the caller never sees, so a key granted only unwrap
cannot leak what it transports.
Fields§
§decrypt: boolWhether the minted key may decrypt.
unwrap: boolWhether the minted key may unwrap.
extractable: boolWhether the minted key’s material may be exported.
Trait Implementations§
Source§impl Clone for DecryptionKeyOptions
impl Clone for DecryptionKeyOptions
Source§fn clone(&self) -> DecryptionKeyOptions
fn clone(&self) -> DecryptionKeyOptions
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 DecryptionKeyOptions
impl Debug for DecryptionKeyOptions
Source§impl Default for DecryptionKeyOptions
impl Default for DecryptionKeyOptions
Source§fn default() -> DecryptionKeyOptions
fn default() -> DecryptionKeyOptions
Returns the “default value” for a type. Read more
impl Copy for DecryptionKeyOptions
Auto Trait Implementations§
impl Freeze for DecryptionKeyOptions
impl RefUnwindSafe for DecryptionKeyOptions
impl Send for DecryptionKeyOptions
impl Sync for DecryptionKeyOptions
impl Unpin for DecryptionKeyOptions
impl UnsafeUnpin for DecryptionKeyOptions
impl UnwindSafe for DecryptionKeyOptions
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