#[non_exhaustive]pub struct DecodedCredentialV2 {
pub header: JwsHeader,
pub claims: JwtClaims,
pub credential: CredentialV2,
}Available on crate feature
vc only.Expand description
A validated or decoded VCDM 2.0 credential JWT: its header, its claims and the credential.
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, which is the credential plus any registered claims.
credential: CredentialV2The credential.
Trait Implementations§
Source§impl Clone for DecodedCredentialV2
impl Clone for DecodedCredentialV2
Auto Trait Implementations§
impl Freeze for DecodedCredentialV2
impl RefUnwindSafe for DecodedCredentialV2
impl Send for DecodedCredentialV2
impl Sync for DecodedCredentialV2
impl Unpin for DecodedCredentialV2
impl UnsafeUnpin for DecodedCredentialV2
impl UnwindSafe for DecodedCredentialV2
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