pub struct TrustedKey {
pub key_id: String,
pub public_key_pem: Option<String>,
}Expand description
One public key a caller is willing to accept signatures from.
Deserialised leniently on purpose: a trust file is the caller’s own artefact, not a document the
box format governs, and keygen writes a publicKeyBase64 beside the PEM that this crate — like
the Node and Python consumers — does not read.
Fields§
§key_id: StringIdentifier a signature names to select this key.
public_key_pem: Option<String>The key itself, SPKI PEM. A key without one is skipped rather than rejected.
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 (const: unstable) · 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