#[non_exhaustive]pub struct DecodedCredential {
pub header: JwsHeader,
pub claims: JwtClaims,
pub credential: Credential,
}Available on crate feature
vc only.Expand description
A validated or decoded VCDM 1.1 credential JWT: its header, its claims (custom ones included) and the credential they map to.
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.header: JwsHeaderThe JWS header.
claims: JwtClaimsThe claims set, vc included.
credential: CredentialThe credential, with the registered claims mapped back into it.
Trait Implementations§
Source§impl Clone for DecodedCredential
impl Clone for DecodedCredential
Auto Trait Implementations§
impl Freeze for DecodedCredential
impl RefUnwindSafe for DecodedCredential
impl Send for DecodedCredential
impl Sync for DecodedCredential
impl Unpin for DecodedCredential
impl UnsafeUnpin for DecodedCredential
impl UnwindSafe for DecodedCredential
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