pub enum ConstraintClass {
Property,
Occurrence,
}Expand description
Which of OCPP’s two constraint categories a violation falls into, and so
which CALLERROR code answers it.
Each version names these slightly differently – 1.6J’s
OccurenceConstraintViolation lost a letter that 2.x’s
OccurrenceConstraintViolation restored – so this is the version-
independent classification, and the caller picks the code from their
version’s RpcErrorCode.
Variants§
Property
A value breaks its own field’s rule: too long, out of range, not on
the required step. Answered with PropertyConstraintViolation.
Occurrence
An array holds the wrong number of elements. Answered with
Occur(r)enceConstraintViolation.
Trait Implementations§
Source§impl Clone for ConstraintClass
impl Clone for ConstraintClass
Source§fn clone(&self) -> ConstraintClass
fn clone(&self) -> ConstraintClass
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ConstraintClass
Source§impl Debug for ConstraintClass
impl Debug for ConstraintClass
impl Eq for ConstraintClass
Source§impl PartialEq for ConstraintClass
impl PartialEq for ConstraintClass
impl StructuralPartialEq for ConstraintClass
Auto Trait Implementations§
impl Freeze for ConstraintClass
impl RefUnwindSafe for ConstraintClass
impl Send for ConstraintClass
impl Sync for ConstraintClass
impl Unpin for ConstraintClass
impl UnsafeUnpin for ConstraintClass
impl UnwindSafe for ConstraintClass
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