pub struct Violation {
pub path: String,
pub kind: ViolationKind,
pub reason: String,
}Expand description
A single constraint failure.
Fields§
§path: StringRFC 6901 pointer to the offending member, e.g. /chargingStation/model.
kind: ViolationKindCategory, which decides the OCPP error code.
reason: StringHuman-readable reason, e.g. maxLength 20 exceeded (got 27).
Trait Implementations§
impl Eq for Violation
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