pub struct SigningKey(/* private fields */);Expand description
A validated signing key fingerprint (e.g., PGP/GPG key fingerprint).
Stores a 40-character uppercase hex fingerprint (160-bit, SHA-1 format used by GPG).
Implementations§
Source§impl SigningKey
impl SigningKey
Sourcepub fn new(fingerprint: &str) -> Result<Self, IdentityError>
pub fn new(fingerprint: &str) -> Result<Self, IdentityError>
Parse and validate a signing key fingerprint.
Accepts 40 hex characters (optionally with spaces or colons as separators). The stored form is uppercase hex with no separators.
Trait Implementations§
Source§impl AsRef<str> for SigningKey
impl AsRef<str> for SigningKey
Source§impl Clone for SigningKey
impl Clone for SigningKey
Source§fn clone(&self) -> SigningKey
fn clone(&self) -> SigningKey
Returns a duplicate of the value. Read more
1.0.0 · 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 SigningKey
impl Debug for SigningKey
Source§impl<'de> Deserialize<'de> for SigningKey
impl<'de> Deserialize<'de> for SigningKey
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for SigningKey
impl Display for SigningKey
Source§impl Hash for SigningKey
impl Hash for SigningKey
Source§impl PartialEq for SigningKey
impl PartialEq for SigningKey
Source§impl Serialize for SigningKey
impl Serialize for SigningKey
impl Eq for SigningKey
impl StructuralPartialEq for SigningKey
Auto Trait Implementations§
impl Freeze for SigningKey
impl RefUnwindSafe for SigningKey
impl Send for SigningKey
impl Sync for SigningKey
impl Unpin for SigningKey
impl UnsafeUnpin for SigningKey
impl UnwindSafe for SigningKey
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.