pub trait MapDecode: Sized {
// Required methods
fn cbor_map_keys() -> &'static [i64];
fn decode_map<'a, E: MapEntryAccess<'a>>(
entries: &mut E,
) -> Result<Self, Error>;
}Available on crate feature
cbor only.Expand description
Direct map-entry decoding for derive-generated map-mode
structs. Implementations consume claimed keys from entries.
Required Methods§
Sourcefn cbor_map_keys() -> &'static [i64]
fn cbor_map_keys() -> &'static [i64]
Returns the map keys this type consumes, sorted by cbor_key_cmp.
Sourcefn decode_map<'a, E: MapEntryAccess<'a>>(entries: &mut E) -> Result<Self, Error>
fn decode_map<'a, E: MapEntryAccess<'a>>(entries: &mut E) -> Result<Self, Error>
Builds the value from the entries it claims, leaving the rest in place.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl MapDecode for Audience
Available on crate feature
cwt only.impl MapDecode for BootCount
Available on crate feature
cwt only.impl MapDecode for BootSeed
Available on crate feature
cwt only.impl MapDecode for DebugStatus
Available on crate feature
cwt only.impl MapDecode for EmptyHeader
Available on crate feature
cose only.impl MapDecode for EncProtectedHeader
Available on crate feature
cose only.impl MapDecode for EncapKeyHeader
Available on crate feature
cose only.impl MapDecode for Expiration
Available on crate feature
cwt only.impl MapDecode for HwModel
Available on crate feature
cwt only.impl MapDecode for HwVersion
Available on crate feature
cwt only.impl MapDecode for IntendedUse
Available on crate feature
cwt only.impl MapDecode for IssuedAt
Available on crate feature
cwt only.impl MapDecode for Issuer
Available on crate feature
cwt only.impl MapDecode for NotBefore
Available on crate feature
cwt only.impl MapDecode for OemBoot
Available on crate feature
cwt only.impl MapDecode for Oemid
Available on crate feature
cwt only.impl MapDecode for SigProtectedHeader
Available on crate feature
cose only.impl MapDecode for Subject
Available on crate feature
cwt only.impl MapDecode for SwName
Available on crate feature
cwt only.impl MapDecode for SwVersion
Available on crate feature
cwt only.impl MapDecode for TokenId
Available on crate feature
cwt only.impl MapDecode for Ueid
Available on crate feature
cwt only.impl MapDecode for Uptime
Available on crate feature
cwt only.impl<T: ConfirmKey> MapDecode for Confirm<T>
Available on crate feature
cwt only.