#[non_exhaustive]pub struct DecodedPresentation {
pub header: JwsHeader,
pub claims: JwtClaims,
pub presentation: Presentation,
pub credentials: Vec<DecodedCredential>,
}Available on crate feature
vc only.Expand description
A validated or decoded VCDM 1.1 presentation JWT: its header, its claims (custom ones included), the presentation, and its credentials 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, vp included.
presentation: PresentationThe presentation, with iss and jti mapped back into it.
credentials: Vec<DecodedCredential>The presented credentials, in the order of verifiableCredential.
Implementations§
Trait Implementations§
Source§impl Clone for DecodedPresentation
impl Clone for DecodedPresentation
Auto Trait Implementations§
impl Freeze for DecodedPresentation
impl RefUnwindSafe for DecodedPresentation
impl Send for DecodedPresentation
impl Sync for DecodedPresentation
impl Unpin for DecodedPresentation
impl UnsafeUnpin for DecodedPresentation
impl UnwindSafe for DecodedPresentation
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