[][src]Struct verify::schemars::errors::Error

pub struct Error<S: Span> {
    pub meta: Option<Box<Metadata>>,
    pub span: Option<S>,
    pub value: ErrorValue<S>,
}
This is supported on feature="schemars" only.

A validation error.

It contains an optional span of the invalid value and optional information about the schema that caused the error.

Fields

meta: Option<Box<Metadata>>
This is supported on feature="schemars" only.

Information about the schema that caused the validation error.

span: Option<S>
This is supported on feature="schemars" only.

The span of the invalid value.

value: ErrorValue<S>
This is supported on feature="schemars" only.

The actual error details.

Trait Implementations

impl<S: Clone + Span> Clone for Error<S>[src]

impl<S: Debug + Span> Debug for Error<S>[src]

impl<S: Span> Display for Error<S>[src]

impl<S: PartialEq + Span> PartialEq<Error<S>> for Error<S>[src]

impl<S: Span> StructuralPartialEq for Error<S>[src]

Auto Trait Implementations

impl<S> RefUnwindSafe for Error<S> where
    S: RefUnwindSafe

impl<S> Send for Error<S> where
    S: Send

impl<S> Sync for Error<S> where
    S: Sync

impl<S> Unpin for Error<S> where
    S: Unpin

impl<S> UnwindSafe for Error<S> where
    S: RefUnwindSafe + UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DynClone for T where
    T: Clone
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.