Skip to main content

EatClaimKey

Enum EatClaimKey 

Source
#[repr(i64)]
pub enum EatClaimKey {
Show 22 variants Iat = 6, Nonce = 10, Ueid = 256, Sueids = 257, OemId = 258, HwModel = 259, HwVersion = 260, Uptime = 261, OemBoot = 262, DbgStat = 263, Location = 264, EatProfile = 265, Submods = 266, BootCount = 267, BootSeed = 268, Dloas = 269, SwName = 270, SwVersion = 271, Manifests = 272, Measurements = 273, MeasRes = 274, IntUse = 275,
}
Expand description

CWT / EAT claim key integers as registered by RFC 9711.

Standard JWT/CWT claims that predate EAT (e.g., iat = 6) are included for completeness. The RFC 9711-specific claims start at key 10 (Nonce) and run through 275 (Intended Use).

Variants§

§

Iat = 6

Issued-At (seconds since epoch). CWT key 6.

§

Nonce = 10

Nonce – eat_nonce. Key 10. Value: bstr or array.

§

Ueid = 256

Universal Entity ID – ueid. Key 256. Value: bstr.

§

Sueids = 257

Semipermanent UEIDs – sueids. Key 257. Value: map.

§

OemId = 258

Hardware OEM ID – oemid. Key 258. Value: bstr or int.

§

HwModel = 259

Hardware Model – hwmodel. Key 259. Value: bstr.

§

HwVersion = 260

Hardware Version – hwversion. Key 260. Value: array.

§

Uptime = 261

Uptime – uptime. Key 261. Value: uint.

§

OemBoot = 262

OEM Authorized Boot – oemboot. Key 262. Value: bool.

§

DbgStat = 263

Debug Status – dbgstat. Key 263. Value: uint.

§

Location = 264

Location – location. Key 264. Value: map.

§

EatProfile = 265

EAT Profile – eat_profile. Key 265. Value: uri or oid.

§

Submods = 266

Submodules Section – submods. Key 266. Value: map.

§

BootCount = 267

Boot Count – bootcount. Key 267. Value: uint.

§

BootSeed = 268

Boot Seed – bootseed. Key 268. Value: bstr.

§

Dloas = 269

DLOAs (Digital Letters of Approval) – dloas. Key 269. Value: array.

§

SwName = 270

Software Name – swname. Key 270. Value: tstr.

§

SwVersion = 271

Software Version – swversion. Key 271. Value: array.

§

Manifests = 272

Software Manifests – manifests. Key 272. Value: array.

§

Measurements = 273

Measurements – measurements. Key 273. Value: array.

§

MeasRes = 274

Software Measurement Results – measres. Key 274. Value: array.

§

IntUse = 275

Intended Use – intuse. Key 275. Value: uint.

Trait Implementations§

Source§

impl Clone for EatClaimKey

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for EatClaimKey

Source§

impl Debug for EatClaimKey

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for EatClaimKey

Source§

impl From<EatClaimKey> for i64

Converts a claim key into its integer CBOR map key.

Source§

fn from(k: EatClaimKey) -> i64

Returns the numeric key of k.

Source§

impl PartialEq for EatClaimKey

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for EatClaimKey

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

Source§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

Source§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where T: 'a,

Source§

fn implicit( self, class: Class, constructed: bool, tag: u32, ) -> TaggedParser<'a, Implicit, Self, E>

Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> FromRef<T> for T
where T: Clone,

Source§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
Source§

impl<A, B, T> HttpServerConnExec<A, B> for T
where B: Body,

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more