pub struct ValidationError {
pub message: String,
pub code: Option<String>,
pub field: Option<String>,
pub expected: Option<String>,
}Available on non-WebAssembly only.
Expand description
Validation error with elicitation support
Fields§
§message: StringHuman-readable error message
code: Option<String>Machine-readable error code for elicitation
field: Option<String>Field that failed validation
expected: Option<String>Expected format or value
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ValidationError
impl RefUnwindSafe for ValidationError
impl Send for ValidationError
impl Sync for ValidationError
impl Unpin for ValidationError
impl UnsafeUnpin for ValidationError
impl UnwindSafe for ValidationError
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