pub struct Violation {
pub path: Vec<usize>,
pub kind: ViolationKind,
}Expand description
A single schema violation, located by the offending node’s index path.
Fields§
§path: Vec<usize>Index path to the node (root = []), as used by Node::node_at.
kind: ViolationKindWhat’s wrong.
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