Struct SigningPolicy
pub struct SigningPolicy {
pub sign: bool,
pub extractable: bool,
}Expand description
The shared core’s key-material and policy types, re-exported for the
embedder key constructors (SigningKey::from_material,
VerifyingKey::from_material).
signature.signing-key-options (degenerate: sign is the sole usage).
Fields§
§sign: bool§extractable: boolImplementations§
§impl SigningPolicy
impl SigningPolicy
pub fn check_useful(&self) -> Result<(), Error>
pub fn check_useful(&self) -> Result<(), Error>
The at-least-one-usage mint check (the options contract).
pub fn webcrypto_usages(&self) -> Vec<&'static str>
pub fn webcrypto_usages(&self) -> Vec<&'static str>
The granted usages under their W3C Web Cryptography API names.
Trait Implementations§
§impl Clone for SigningPolicy
impl Clone for SigningPolicy
§fn clone(&self) -> SigningPolicy
fn clone(&self) -> SigningPolicy
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 Debug for SigningPolicy
impl Debug for SigningPolicy
§impl Default for SigningPolicy
impl Default for SigningPolicy
§fn default() -> SigningPolicy
fn default() -> SigningPolicy
Returns the “default value” for a type. Read more
impl Copy for SigningPolicy
Auto Trait Implementations§
impl Freeze for SigningPolicy
impl RefUnwindSafe for SigningPolicy
impl Send for SigningPolicy
impl Sync for SigningPolicy
impl Unpin for SigningPolicy
impl UnsafeUnpin for SigningPolicy
impl UnwindSafe for SigningPolicy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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