pub struct KeyType(/* private fields */);
Expand description
Identifiers for the type of key or object getting signed.
Implementations§
source§impl KeyType
impl KeyType
sourcepub const ED25519_KEY: KeyType = _
pub const ED25519_KEY: KeyType = _
Identifier for an Ed25519 key.
sourcepub const SHA256_OF_RSA: KeyType = _
pub const SHA256_OF_RSA: KeyType = _
Identifier for the SHA256 of an DER-encoded RSA key.
sourcepub const SHA256_OF_X509: KeyType = _
pub const SHA256_OF_X509: KeyType = _
Identifies the SHA256 of an X.509 certificate.
sourcepub fn is_recognized(self) -> bool
pub fn is_recognized(self) -> bool
Return true if this value is one that we recognize.
Trait Implementations§
source§impl PartialEq for KeyType
impl PartialEq for KeyType
impl Copy for KeyType
impl Eq for KeyType
impl StructuralPartialEq for KeyType
Auto Trait Implementations§
impl RefUnwindSafe for KeyType
impl Send for KeyType
impl Sync for KeyType
impl Unpin for KeyType
impl UnwindSafe for KeyType
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