#[non_exhaustive]pub enum DecodeErrorKind {
Format,
Occurrence,
Type,
Property,
UnknownField,
Protocol,
UnsupportedAction,
}Expand description
The category of a decoding failure, which decides the OCPP error code.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Format
Malformed JSON, or a payload that is not a JSON object.
Occurrence
A required member is absent, or an array’s cardinality is wrong.
Type
A member has the wrong JSON type.
Property
A value violates a maxLength, range, or enumeration constraint.
UnknownField
A member the schema does not define was present.
Protocol
Individually valid members that break a cross-field rule.
UnsupportedAction
The action is not defined for this direction or version.
Trait Implementations§
Source§impl Clone for DecodeErrorKind
impl Clone for DecodeErrorKind
impl Copy for DecodeErrorKind
Source§impl Debug for DecodeErrorKind
impl Debug for DecodeErrorKind
impl Eq for DecodeErrorKind
Source§impl Hash for DecodeErrorKind
impl Hash for DecodeErrorKind
Source§impl PartialEq for DecodeErrorKind
impl PartialEq for DecodeErrorKind
impl StructuralPartialEq for DecodeErrorKind
Auto Trait Implementations§
impl Forget for DecodeErrorKind
impl Freeze for DecodeErrorKind
impl RefUnwindSafe for DecodeErrorKind
impl Send for DecodeErrorKind
impl Sync for DecodeErrorKind
impl Unpin for DecodeErrorKind
impl UnsafeUnpin for DecodeErrorKind
impl UnwindSafe for DecodeErrorKind
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