#[non_exhaustive]pub struct CryptoKey {
pub at_type: Option<String>,
pub kind: Option<String>,
pub uri: Option<String>,
pub media_type: Option<String>,
pub contexts: Option<HashMap<String, bool>>,
pub pref: Option<u32>,
pub label: Option<String>,
pub extra: Map<String, Value>,
}Expand description
A cryptographic key or certificate associated with a Card (RFC 9553 §2.6.1). Extends the abstract Resource type.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.at_type: Option<String>Object type discriminator; always "CryptoKey" on the wire.
kind: Option<String>Kind of resource (optional for CryptoKey per RFC 9553 §2.6.1).
uri: Option<String>The resource URI (RFC 3986). Mandatory per RFC 9553 §1.4.4 but
modelled as Option for partial-response deserialization.
media_type: Option<String>IANA media type of the resource.
contexts: Option<HashMap<String, bool>>Contexts in which to use the resource (key → true).
pref: Option<u32>Preference order in 1..=100 (lower = more preferred).
label: Option<String>Custom label for the value.
extra: Map<String, Value>Catch-all for vendor / site / private extension fields not covered by the typed fields above. Preserves unknown fields across deserialize/serialize round-trip per workspace extras-preservation policy (see workspace AGENTS.md).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CryptoKey
impl<'de> Deserialize<'de> for CryptoKey
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CryptoKey, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CryptoKey, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for CryptoKey
impl Serialize for CryptoKey
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for CryptoKey
impl StructuralPartialEq for CryptoKey
Auto Trait Implementations§
impl Freeze for CryptoKey
impl RefUnwindSafe for CryptoKey
impl Send for CryptoKey
impl Sync for CryptoKey
impl Unpin for CryptoKey
impl UnsafeUnpin for CryptoKey
impl UnwindSafe for CryptoKey
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