pub struct KeyEntry {
pub alg: String,
pub pub_key: String,
pub tmb: String,
pub tag: Option<String>,
pub now: Option<i64>,
}Expand description
Key material for a commit (SPEC §6).
Keys are stored at commit level per SPEC §5.2/§5.3, not embedded
per-coz. Optional fields (tag, now) are semantically
optional — not all keys have human-readable labels or creation
timestamps at export time.
Fields§
§alg: StringAlgorithm identifier (e.g., “ES256”).
pub_key: StringPublic key (base64url-encoded).
tmb: StringKey thumbprint (base64url-encoded).
tag: Option<String>Optional human-readable label.
now: Option<i64>Optional creation timestamp (maps to Key.first_seen).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for KeyEntry
impl<'de> Deserialize<'de> for KeyEntry
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 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