#[non_exhaustive]pub struct DecodedPresentationV2 {
pub header: JwsHeader,
pub claims: JwtClaims,
pub presentation: PresentationV2,
pub credentials: Vec<PresentedCredentialV2>,
}Available on crate feature
vc only.Expand description
A validated or decoded VCDM 2.0 presentation JWT (vp+jwt): its header, its claims, the
presentation, and its enveloped credentials unwrapped and decoded.
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 presentation plus any registered claims.
presentation: PresentationV2The presentation, with iss and jti mapped into holder and id when those are
absent.
credentials: Vec<PresentedCredentialV2>The presented credentials, in the order of verifiableCredential, each in the form
its envelope held.
Implementations§
Trait Implementations§
Source§impl Clone for DecodedPresentationV2
impl Clone for DecodedPresentationV2
Auto Trait Implementations§
impl Freeze for DecodedPresentationV2
impl RefUnwindSafe for DecodedPresentationV2
impl Send for DecodedPresentationV2
impl Sync for DecodedPresentationV2
impl Unpin for DecodedPresentationV2
impl UnsafeUnpin for DecodedPresentationV2
impl UnwindSafe for DecodedPresentationV2
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