pub struct ConstraintViolation {
pub path: String,
pub message: String,
pub kind: ConstraintKind,
}Expand description
A violation of an XSD-level constraint.
Produced by Validatable::validate_constraints when a field value does
not satisfy its schema-defined restrictions.
Fields§
§path: StringXPath-like path to the violating field (e.g.
"/Document/FIToFICstmrCdtTrf/GrpHdr/MsgId").
message: StringHuman-readable description of the violation.
kind: ConstraintKindWhich constraint kind was violated.
Trait Implementations§
Source§impl Clone for ConstraintViolation
impl Clone for ConstraintViolation
Source§fn clone(&self) -> ConstraintViolation
fn clone(&self) -> ConstraintViolation
Returns a duplicate 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 ConstraintViolation
impl Debug for ConstraintViolation
Source§impl PartialEq for ConstraintViolation
impl PartialEq for ConstraintViolation
impl StructuralPartialEq for ConstraintViolation
Auto Trait Implementations§
impl Freeze for ConstraintViolation
impl RefUnwindSafe for ConstraintViolation
impl Send for ConstraintViolation
impl Sync for ConstraintViolation
impl Unpin for ConstraintViolation
impl UnsafeUnpin for ConstraintViolation
impl UnwindSafe for ConstraintViolation
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