pub struct FieldError {
pub field: String,
pub message: String,
}Expand description
A single field-level validation failure.
Fields§
§field: StringJSON pointer path to the failing field, e.g. "/gtin" or
"/fibreComposition/0/pct". Empty when the failure is not tied to a
specific field.
message: StringHuman-readable error message.
Trait Implementations§
Source§impl Clone for FieldError
impl Clone for FieldError
Source§fn clone(&self) -> FieldError
fn clone(&self) -> FieldError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FieldError
impl Debug for FieldError
Source§impl PartialEq for FieldError
impl PartialEq for FieldError
Source§fn eq(&self, other: &FieldError) -> bool
fn eq(&self, other: &FieldError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FieldError
Auto Trait Implementations§
impl Freeze for FieldError
impl RefUnwindSafe for FieldError
impl Send for FieldError
impl Sync for FieldError
impl Unpin for FieldError
impl UnsafeUnpin for FieldError
impl UnwindSafe for FieldError
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