[][src]Enum yaml_validator::SchemaErrorKind

pub enum SchemaErrorKind<'a> {
    WrongType {
        expected: &'static str,
        actual: &'a str,
    },
    FieldMissing {
        field: &'a str,
    },
    ExtraField {
        field: &'a str,
    },
    UnknownType {
        unknown_type: &'a str,
    },
    Multiple {
        errors: Vec<SchemaError<'a>>,
    },
    UnknownSchema {
        uri: &'a str,
    },
}

Variants

WrongType

Fields of WrongType

expected: &'static stractual: &'a str
FieldMissing

Fields of FieldMissing

field: &'a str
ExtraField

Fields of ExtraField

field: &'a str
UnknownType

Fields of UnknownType

unknown_type: &'a str
Multiple

Fields of Multiple

errors: Vec<SchemaError<'a>>
UnknownSchema

Fields of UnknownSchema

uri: &'a str

Trait Implementations

impl<'a> Debug for SchemaErrorKind<'a>[src]

impl<'a> Display for SchemaErrorKind<'a>[src]

impl<'a> Eq for SchemaErrorKind<'a>[src]

impl<'a> Error for SchemaErrorKind<'a>[src]

impl<'a> Into<SchemaError<'a>> for SchemaErrorKind<'a>[src]

impl<'a> PartialEq<SchemaErrorKind<'a>> for SchemaErrorKind<'a>[src]

impl<'a> StructuralEq for SchemaErrorKind<'a>[src]

impl<'a> StructuralPartialEq for SchemaErrorKind<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for SchemaErrorKind<'a>

impl<'a> Send for SchemaErrorKind<'a>

impl<'a> Sync for SchemaErrorKind<'a>

impl<'a> Unpin for SchemaErrorKind<'a>

impl<'a> UnwindSafe for SchemaErrorKind<'a>

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> From<T> for T[src]

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

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.