#[non_exhaustive]pub struct DecodedLinkedPresentationV2 {
pub header: JwsHeader,
pub claims: JwtClaims,
pub presentation: PresentationV2,
pub credentials: Vec<Result<PresentedCredentialV2, ValidationError>>,
}Available on crate feature
linked-vp only.Expand description
A VCDM 2.0 linked presentation (vp+jwt) decoded without verification: the presentation,
and the credential of each of its envelopes decoded on its own.
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<Result<PresentedCredentialV2, ValidationError>>One result per entry of verifiableCredential, in order: the enveloped credential
decoded (a credential secured with SD-JWT with the disclosures it carries applied), or
why that envelope does not hold one.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for DecodedLinkedPresentationV2
impl !UnwindSafe for DecodedLinkedPresentationV2
impl Forget for DecodedLinkedPresentationV2
impl Freeze for DecodedLinkedPresentationV2
impl Move for DecodedLinkedPresentationV2
impl Send for DecodedLinkedPresentationV2
impl Sync for DecodedLinkedPresentationV2
impl Unpin for DecodedLinkedPresentationV2
impl UnsafeUnpin for DecodedLinkedPresentationV2
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