pub struct TrustedKey {
pub key_id: String,
pub algorithm: String,
pub public_key: String,
pub description: Option<String>,
pub added_at: Option<DateTime<Utc>>,
pub expires_at: Option<DateTime<Utc>>,
pub revoked: bool,
}Expand description
A trusted signing key.
Fields§
§key_id: StringKey ID (sha256:…).
algorithm: StringAlgorithm (always “Ed25519” for now).
public_key: StringPublic key (SPKI DER, Base64).
description: Option<String>Human-readable description.
added_at: Option<DateTime<Utc>>When the key was added.
expires_at: Option<DateTime<Utc>>When the key expires (if any).
revoked: boolWhether the key is revoked.
Trait Implementations§
Source§impl Clone for TrustedKey
impl Clone for TrustedKey
Source§fn clone(&self) -> TrustedKey
fn clone(&self) -> TrustedKey
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TrustedKey
impl Debug for TrustedKey
Source§impl<'de> Deserialize<'de> for TrustedKey
impl<'de> Deserialize<'de> for TrustedKey
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 TrustedKey
impl RefUnwindSafe for TrustedKey
impl Send for TrustedKey
impl Sync for TrustedKey
impl Unpin for TrustedKey
impl UnsafeUnpin for TrustedKey
impl UnwindSafe for TrustedKey
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