#[non_exhaustive]pub struct SourceValidationError {
pub document: Box<SourceDocument>,
pub errors: Vec<ValidationError>,
}Expand description
The document failed roas validation. The document is returned, not
consumed, so it can be inspected or validated again with other
options. Boxed, since the whole 3.2 model rides inside.
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.document: Box<SourceDocument>§errors: Vec<ValidationError>Trait Implementations§
Source§impl Debug for SourceValidationError
impl Debug for SourceValidationError
Source§impl Display for SourceValidationError
impl Display for SourceValidationError
Source§impl Error for SourceValidationError
impl Error for SourceValidationError
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()
Auto Trait Implementations§
impl Forget for SourceValidationError
impl Freeze for SourceValidationErrorwhere
*const SourceDocument is !null: Freeze,
PhantomData<SourceDocument>: Freeze,
*const u8 is !null: Freeze,
PhantomData<ValidationError>: Freeze,
impl Move for SourceValidationError
impl RefUnwindSafe for SourceValidationError
impl Send for SourceValidationError
impl Sync for SourceValidationError
impl Unpin for SourceValidationError
impl UnsafeUnpin for SourceValidationErrorwhere
*const SourceDocument is !null: UnsafeUnpin,
PhantomData<SourceDocument>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<ValidationError>: UnsafeUnpin,
impl UnwindSafe for SourceValidationError
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
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read more