#[non_exhaustive]pub struct Violation {
pub instance_path: Pointer,
pub schema_path: Pointer,
pub keyword: Keyword,
}Expand description
One way a value fails a schema.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.instance_path: PointerWhere in the value: the value that failed, or for required and
additionalProperties the object holding the keys.
schema_path: PointerThe keyword that rejected it, as a location in the schema document. A keyword inside a definition is located there, not where it was referenced from.
keyword: KeywordThe keyword and what it asked for.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Violation
Auto Trait Implementations§
impl Freeze for Violation
impl RefUnwindSafe for Violation
impl Send for Violation
impl Sync for Violation
impl Unpin for Violation
impl UnsafeUnpin for Violation
impl UnwindSafe for Violation
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