pub struct TrustRoot {
pub key_id: String,
pub public_key: String,
pub kind: TrustRootKind,
pub label: String,
pub added_at: String,
}Expand description
One pinned trust root.
Fields§
§key_id: StringOpaque identifier. Matches the existing KeyId format used elsewhere,
but the trust store does not require any particular shape – any
non-empty string is accepted so operators can use human labels like
hub_zerker_labs.
public_key: StringPublic key encoded as ed25519:<base64url-no-pad>. The prefix is
required so the format stays algorithm-agnostic when we add more
signature schemes; today only ed25519 is recognized.
kind: TrustRootKindWhat this root is allowed to verify.
label: StringHuman-readable label. Shown by treeship trust list. Optional in
the file format; defaults to the empty string.
added_at: StringRFC 3339 timestamp the root was added. Useful for auditing.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TrustRoot
impl<'de> Deserialize<'de> for TrustRoot
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
impl Eq for TrustRoot
impl StructuralPartialEq for TrustRoot
Auto Trait Implementations§
impl Freeze for TrustRoot
impl RefUnwindSafe for TrustRoot
impl Send for TrustRoot
impl Sync for TrustRoot
impl Unpin for TrustRoot
impl UnsafeUnpin for TrustRoot
impl UnwindSafe for TrustRoot
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.