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>,
pub valid_until: Option<String>,
pub successor_key_id: Option<KeyId>,
}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>§valid_until: Option<String>RFC 3339 timestamp after which signatures by this key should be
considered stale. None means the key has not been rotated and is
indefinitely valid. Set automatically by Store::rotate to
now + grace_period on the predecessor key.
successor_key_id: Option<KeyId>If this key was rotated to a successor, the successor’s key id.
Lets verifiers walk a rotation chain forward when validating an old
receipt against the current keystore. None means this is the head
of its chain.
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