pub struct EarToken {
pub eat_profile: String,
pub iat: i64,
pub ear_verifier_id: VerifierId,
pub submods: BTreeMap<String, EarAppraisal>,
}Expand description
EAR token per draft-ietf-rats-ear, carrying one or more appraisals.
Fields§
§eat_profile: StringEAT profile URI (CWT key 265)
iat: i64Issued-at timestamp, epoch seconds (CWT key 6)
ear_verifier_id: VerifierIdVerifier identity (key 1004)
submods: BTreeMap<String, EarAppraisal>Submodule appraisals keyed by name (key 266)
Implementations§
Source§impl EarToken
impl EarToken
Sourcepub fn overall_status(&self) -> Ar4siStatus
pub fn overall_status(&self) -> Ar4siStatus
Overall status: the worst (lowest) status across all submodule appraisals.
pub fn pop_appraisal(&self) -> Option<&EarAppraisal>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EarToken
impl<'de> Deserialize<'de> for EarToken
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 EarToken
impl RefUnwindSafe for EarToken
impl Send for EarToken
impl Sync for EarToken
impl Unpin for EarToken
impl UnsafeUnpin for EarToken
impl UnwindSafe for EarToken
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