Enum entity::EntConversionError[][src]

pub enum EntConversionError {
    EntWrongType {
        expected: String,
        actual: String,
    },
    FieldMissing {
        name: String,
    },
    FieldWrongType {
        name: String,
        expected: ValueType,
        actual: ValueType,
    },
    EdgeMissing {
        name: String,
    },
    EdgeWrongType {
        name: String,
        expected: EdgeValueType,
        actual: EdgeValueType,
    },
}

Represents some error that can occur when converting an ent to another type

Variants

EntWrongType

Fields of EntWrongType

expected: Stringactual: String
FieldMissing

Fields of FieldMissing

name: String
FieldWrongType

Fields of FieldWrongType

name: Stringexpected: ValueTypeactual: ValueType
EdgeMissing

Fields of EdgeMissing

name: String
EdgeWrongType

Fields of EdgeWrongType

name: Stringexpected: EdgeValueTypeactual: EdgeValueType

Trait Implementations

impl Debug for EntConversionError[src]

impl Display for EntConversionError[src]

impl Error for EntConversionError[src]

Auto Trait Implementations

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.