pub struct ValidationFailure {
pub node: String,
pub attribute: String,
pub pointer: String,
pub kind: FailureKind,
}Expand description
One attribute value that does not match its schema.
Fields§
§node: StringPath of the node carrying the attribute.
attribute: StringAttribute id, which is also the schema id.
pointer: StringRFC 6901 JSON pointer into the attribute value; empty for the value
itself, /points/0 for the first element of its points key.
kind: FailureKindTrait Implementations§
Source§impl Clone for ValidationFailure
impl Clone for ValidationFailure
Source§fn clone(&self) -> ValidationFailure
fn clone(&self) -> ValidationFailure
Returns a copy of the value. Read more
1.0.0 · 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 ValidationFailure
impl Debug for ValidationFailure
Source§impl Display for ValidationFailure
impl Display for ValidationFailure
Source§impl Error for ValidationFailure
impl Error for ValidationFailure
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()
Source§impl PartialEq for ValidationFailure
impl PartialEq for ValidationFailure
impl StructuralPartialEq for ValidationFailure
Auto Trait Implementations§
impl Freeze for ValidationFailure
impl RefUnwindSafe for ValidationFailure
impl Send for ValidationFailure
impl Sync for ValidationFailure
impl Unpin for ValidationFailure
impl UnwindSafe for ValidationFailure
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