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,
},
}
Expand description
Represents some error that can occur when converting an ent to another type
Variants§
Trait Implementations§
Source§impl Debug for EntConversionError
impl Debug for EntConversionError
Source§impl Display for EntConversionError
impl Display for EntConversionError
Source§impl Error for EntConversionError
impl Error for EntConversionError
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 Freeze for EntConversionError
impl RefUnwindSafe for EntConversionError
impl Send for EntConversionError
impl Sync for EntConversionError
impl Unpin for EntConversionError
impl UnwindSafe for EntConversionError
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