pub struct CipherKeyOptions { /* private fields */ }Expand description
Mint-time policy for a cipher-key. Grants nothing by default; see
README.md, “Key-options contract”.
Implementations§
Source§impl CipherKeyOptions
impl CipherKeyOptions
Sourcepub fn can_encrypt(&self, allowed: bool)
pub fn can_encrypt(&self, allowed: bool)
Whether the minted key may encrypt. Disabled by default.
Source§impl CipherKeyOptions
impl CipherKeyOptions
Sourcepub fn can_decrypt(&self, allowed: bool)
pub fn can_decrypt(&self, allowed: bool)
Whether the minted key may decrypt. Disabled by default.
Source§impl CipherKeyOptions
impl CipherKeyOptions
Sourcepub fn can_unwrap(&self, allowed: bool)
pub fn can_unwrap(&self, allowed: bool)
Whether the minted key may unwrap key material (see
can-wrap). Disabled by default.
Source§impl CipherKeyOptions
impl CipherKeyOptions
Sourcepub fn extractable(&self, allowed: bool)
pub fn extractable(&self, allowed: bool)
Whether the minted key’s material may be exported. Disabled by default.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for CipherKeyOptions
impl RefUnwindSafe for CipherKeyOptions
impl Send for CipherKeyOptions
impl Sync for CipherKeyOptions
impl Unpin for CipherKeyOptions
impl UnsafeUnpin for CipherKeyOptions
impl UnwindSafe for CipherKeyOptions
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