pub struct DeriveOptions {
pub derive_bits: bool,
pub derive_key: bool,
}Expand description
Mint-time policy for a derivation base secret (Ikm or Password).
See MacKeyOptions for the options contract. The grants are copied
onto every DeriveInput built on the secret; parameterization
neither grants nor revokes.
Fields§
§derive_bits: boolWhether inputs built on this secret may yield raw bits through
DeriveInput::derive_bits — and, because an exportable key is
bits disclosure by other means, whether they may mint
extractable keys.
derive_key: boolWhether inputs built on this secret may mint keys through the
target interfaces’ derive_key (e.g. hmac_sha2::derive_key).
Trait Implementations§
Source§impl Clone for DeriveOptions
impl Clone for DeriveOptions
Source§fn clone(&self) -> DeriveOptions
fn clone(&self) -> DeriveOptions
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 DeriveOptions
impl Debug for DeriveOptions
Source§impl Default for DeriveOptions
impl Default for DeriveOptions
Source§fn default() -> DeriveOptions
fn default() -> DeriveOptions
Returns the “default value” for a type. Read more
impl Copy for DeriveOptions
Auto Trait Implementations§
impl Freeze for DeriveOptions
impl RefUnwindSafe for DeriveOptions
impl Send for DeriveOptions
impl Sync for DeriveOptions
impl Unpin for DeriveOptions
impl UnsafeUnpin for DeriveOptions
impl UnwindSafe for DeriveOptions
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