#[non_exhaustive]pub struct PresentationValidationError {
pub presentation: Option<Box<ValidationError>>,
pub credentials: BTreeMap<usize, ValidationError>,
}Available on crate feature
vc only.Expand description
Why a presentation did not validate: the presentation itself, or some of its credentials.
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.presentation: Option<Box<ValidationError>>What is wrong with the presentation JWT; when set, no credential was validated.
credentials: BTreeMap<usize, ValidationError>What is wrong with each failing credential, by its position in
verifiableCredential.
Implementations§
Source§impl PresentationValidationError
impl PresentationValidationError
Sourcepub fn presentation(error: ValidationError) -> Self
pub fn presentation(error: ValidationError) -> Self
An error of the presentation itself.
Sourcepub fn credentials(errors: BTreeMap<usize, ValidationError>) -> Self
pub fn credentials(errors: BTreeMap<usize, ValidationError>) -> Self
An error of the credentials at the given positions.
Trait Implementations§
Source§impl Debug for PresentationValidationError
impl Debug for PresentationValidationError
Source§impl Error for PresentationValidationError
impl Error for PresentationValidationError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<PresentationValidationError> for LinkedVpError
Available on crate feature linked-vp only.
impl From<PresentationValidationError> for LinkedVpError
Available on crate feature
linked-vp only.Source§fn from(source: PresentationValidationError) -> Self
fn from(source: PresentationValidationError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for PresentationValidationError
impl !UnwindSafe for PresentationValidationError
impl Freeze for PresentationValidationError
impl Send for PresentationValidationError
impl Sync for PresentationValidationError
impl Unpin for PresentationValidationError
impl UnsafeUnpin for PresentationValidationError
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