pub struct MacKeyOptions {
pub sign: bool,
pub verify: bool,
pub extractable: bool,
}Expand description
Mint-time policy for a Mac key: the plain-data counterpart of the
WIT mac.mac-key-options resource, which the minting functions
construct from it per call.
Follows the package-wide options contract: the default grants nothing,
every field is opt-in, and a mint with no usage enabled fails
Error::NotPermitted.
Fields§
§sign: boolWhether the minted key may sign.
verify: boolWhether the minted key may verify.
extractable: boolWhether the minted key’s material may be exported.
Trait Implementations§
Source§impl Clone for MacKeyOptions
impl Clone for MacKeyOptions
Source§fn clone(&self) -> MacKeyOptions
fn clone(&self) -> MacKeyOptions
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 MacKeyOptions
impl Debug for MacKeyOptions
Source§impl Default for MacKeyOptions
impl Default for MacKeyOptions
Source§fn default() -> MacKeyOptions
fn default() -> MacKeyOptions
Returns the “default value” for a type. Read more
impl Copy for MacKeyOptions
Auto Trait Implementations§
impl Freeze for MacKeyOptions
impl RefUnwindSafe for MacKeyOptions
impl Send for MacKeyOptions
impl Sync for MacKeyOptions
impl Unpin for MacKeyOptions
impl UnsafeUnpin for MacKeyOptions
impl UnwindSafe for MacKeyOptions
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