#[non_exhaustive]pub struct KeyEntry {
pub signing_key: SigningKey,
pub verifying_key: VerifyingKey,
pub fingerprint: String,
pub revoked: bool,
pub algorithm: KeyAlgorithm,
}Expand description
algorithm is carried alongside the key material so signing and
verification read it from the key rather than assuming it. The material
itself is Ed25519-typed because Ed25519 is the only algorithm this store
issues; the struct is #[non_exhaustive] so that can change without
breaking downstream construction.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.signing_key: SigningKey§verifying_key: VerifyingKey§fingerprint: String§revoked: boolWhether this key has been revoked (see KeyRecord::revoked).
algorithm: KeyAlgorithmTrait Implementations§
Auto Trait Implementations§
impl Freeze for KeyEntry
impl RefUnwindSafe for KeyEntry
impl Send for KeyEntry
impl Sync for KeyEntry
impl Unpin for KeyEntry
impl UnsafeUnpin for KeyEntry
impl UnwindSafe for KeyEntry
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