pub struct TrustPin {
pub name: String,
pub algo: String,
pub pubkey: String,
}Expand description
A single pinned identity: a name the operator chose, bound to a base64url-encoded Ed25519 verifying key.
Fields§
§name: StringOperator-chosen identity name (e.g. ci-prod, alice-laptop).
algo: StringSignature algorithm. Always SIG_ALGO_ED25519 in v1.
pubkey: StringVerifying-key bytes, base64url-encoded, no padding (32 bytes
decoded) — the same encoding SignaturePayload::pubkey uses.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TrustPin
impl<'de> Deserialize<'de> for TrustPin
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 TrustPin
impl StructuralPartialEq for TrustPin
Auto Trait Implementations§
impl Freeze for TrustPin
impl RefUnwindSafe for TrustPin
impl Send for TrustPin
impl Sync for TrustPin
impl Unpin for TrustPin
impl UnsafeUnpin for TrustPin
impl UnwindSafe for TrustPin
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.