pub enum ResultSchemaError {
EmptyRequiredField(String),
InvalidFieldValue {
field: String,
value: String,
allowed: Vec<String>,
},
InvalidFieldFormat {
field: String,
expected: String,
actual: String,
},
UnknownField {
field: String,
},
VersionMismatch {
expected: u32,
actual: u32,
},
DeserializationFailed(String),
}Expand description
Result Schema validation errors
Variants§
EmptyRequiredField(String)
InvalidFieldValue
InvalidFieldFormat
UnknownField
VersionMismatch
DeserializationFailed(String)
Trait Implementations§
Source§impl Debug for ResultSchemaError
impl Debug for ResultSchemaError
Source§impl Display for ResultSchemaError
impl Display for ResultSchemaError
Source§impl Error for ResultSchemaError
impl Error for ResultSchemaError
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 ResultSchemaError
impl RefUnwindSafe for ResultSchemaError
impl Send for ResultSchemaError
impl Sync for ResultSchemaError
impl Unpin for ResultSchemaError
impl UnsafeUnpin for ResultSchemaError
impl UnwindSafe for ResultSchemaError
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