pub struct FieldError {
pub path: String,
pub path_arr: Vec<PathPart>,
pub key: String,
pub kind: Kind,
pub value: Value,
pub why: String,
pub mark: i64,
pub text: String,
pub args: Map,
pub check: String,
/* private fields */
}Expand description
One validation failure.
Fields§
§path: StringThe dotted path of the failing value.
path_arr: Vec<PathPart>The path as parts: array indices as indices, keys as keys.
key: StringThe immediate key or index.
kind: KindThe kind of the node that ran the check.
value: ValueThe failing value.
why: String§mark: i64§text: StringThe message.
args: MapExtra context of a custom check.
check: StringThe name of the failing check.
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 Default for FieldError
impl Default for FieldError
Source§fn default() -> FieldError
fn default() -> FieldError
Returns the “default value” for a type. Read more
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