#[non_exhaustive]pub struct VerifiedSdJwt {
pub claims: Claims,
pub disclosed_claims: HashMap<String, Value>,
}Expand description
The result of verifying a presented SD-JWT compact form: the validated
JWT claims (signature, iss/aud/exp already checked by
TokenManager::validate_token) plus whatever claims the presented
Disclosures actually proved out.
disclosed_claims only contains claims from Disclosures that were
both presented and verified against _sd[] — a claim whose digest
the issuer never signed for cannot appear here (see
TokenManager::validate_sd_jwt’s rejection rules).
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.claims: ClaimsThe underlying JWT claims, already validated (signature, issuer,
audience, expiry) by TokenManager::validate_token.
disclosed_claims: HashMap<String, Value>Claim name -> value, recovered from the presented Disclosures that verified successfully.
Trait Implementations§
Source§impl Clone for VerifiedSdJwt
impl Clone for VerifiedSdJwt
Source§fn clone(&self) -> VerifiedSdJwt
fn clone(&self) -> VerifiedSdJwt
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 moreAuto Trait Implementations§
impl Freeze for VerifiedSdJwt
impl RefUnwindSafe for VerifiedSdJwt
impl Send for VerifiedSdJwt
impl Sync for VerifiedSdJwt
impl Unpin for VerifiedSdJwt
impl UnsafeUnpin for VerifiedSdJwt
impl UnwindSafe for VerifiedSdJwt
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