#[non_exhaustive]pub enum GenericStatus {
Accepted,
Rejected,
UnknownValue(String),
}Expand description
Status of operation.
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.
Accepted
Accepted.
Rejected
Rejected.
UnknownValue(String)
A value that this version of OCPP does not define.
Produced instead of failing, so a peer’s forward-compatible extension does not
take down the connection. Reported by
Validate as
ViolationKind::UnknownEnumValue,
which the decoder turns into a PropertyConstraintViolation unless
UnknownEnumValues::Preserve is set.
Named UnknownValue because Unknown is itself a defined value of several
OCPP enumerations.
Implementations§
Trait Implementations§
Source§impl Clone for GenericStatus
impl Clone for GenericStatus
Source§impl Debug for GenericStatus
impl Debug for GenericStatus
Source§impl<'de> Deserialize<'de> for GenericStatus
impl<'de> Deserialize<'de> for GenericStatus
Source§fn deserialize<D: Deserializer<'de>>(de: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(de: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for GenericStatus
impl Display for GenericStatus
impl Eq for GenericStatus
Source§impl FromStr for GenericStatus
impl FromStr for GenericStatus
Source§impl Hash for GenericStatus
impl Hash for GenericStatus
Source§impl Ord for GenericStatus
impl Ord for GenericStatus
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for GenericStatus
impl PartialEq for GenericStatus
Source§impl PartialOrd for GenericStatus
impl PartialOrd for GenericStatus
Source§impl Serialize for GenericStatus
impl Serialize for GenericStatus
impl StructuralPartialEq for GenericStatus
Source§impl Validate for GenericStatus
impl Validate for GenericStatus
Source§fn validate_at(&self, path: &mut ValidationPath, out: &mut Violations)
fn validate_at(&self, path: &mut ValidationPath, out: &mut Violations)
Appends this value’s violations to
out, relative to path.Auto Trait Implementations§
impl Forget for GenericStatus
impl Freeze for GenericStatus
impl RefUnwindSafe for GenericStatus
impl Send for GenericStatus
impl Sync for GenericStatus
impl Unpin for GenericStatus
impl UnsafeUnpin for GenericStatus
impl UnwindSafe for GenericStatus
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