pub struct KeyInfo {
pub id: KeyId,
pub algorithm: String,
pub is_default: bool,
pub created_at: String,
pub fingerprint: String,
pub public_key: Vec<u8>,
}Expand description
Public information about a stored key. Never contains private material.
Fields§
§id: KeyId§algorithm: String§is_default: bool§created_at: String§fingerprint: StringFirst 8 bytes of sha256(public_key), hex-encoded.
public_key: Vec<u8>Trait Implementations§
Source§impl<'de> Deserialize<'de> for KeyInfo
impl<'de> Deserialize<'de> for KeyInfo
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
Auto Trait Implementations§
impl Freeze for KeyInfo
impl RefUnwindSafe for KeyInfo
impl Send for KeyInfo
impl Sync for KeyInfo
impl Unpin for KeyInfo
impl UnsafeUnpin for KeyInfo
impl UnwindSafe for KeyInfo
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