#[non_exhaustive]pub enum DisplayMessageStatus {
Accepted,
NotSupportedMessageFormat,
Rejected,
NotSupportedPriority,
NotSupportedState,
UnknownTransaction,
UnknownValue(String),
}Expand description
This indicates whether the Charging Station is able to display the message.
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.
NotSupportedMessageFormat
NotSupportedMessageFormat.
Rejected
Rejected.
NotSupportedPriority
NotSupportedPriority.
NotSupportedState
NotSupportedState.
UnknownTransaction
UnknownTransaction.
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 DisplayMessageStatus
impl Clone for DisplayMessageStatus
Source§impl Debug for DisplayMessageStatus
impl Debug for DisplayMessageStatus
Source§impl<'de> Deserialize<'de> for DisplayMessageStatus
impl<'de> Deserialize<'de> for DisplayMessageStatus
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 DisplayMessageStatus
impl Display for DisplayMessageStatus
impl Eq for DisplayMessageStatus
Source§impl FromStr for DisplayMessageStatus
impl FromStr for DisplayMessageStatus
Source§impl Hash for DisplayMessageStatus
impl Hash for DisplayMessageStatus
Source§impl Ord for DisplayMessageStatus
impl Ord for DisplayMessageStatus
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 DisplayMessageStatus
impl PartialEq for DisplayMessageStatus
Source§impl PartialOrd for DisplayMessageStatus
impl PartialOrd for DisplayMessageStatus
Source§impl Serialize for DisplayMessageStatus
impl Serialize for DisplayMessageStatus
impl StructuralPartialEq for DisplayMessageStatus
Source§impl Validate for DisplayMessageStatus
impl Validate for DisplayMessageStatus
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 DisplayMessageStatus
impl Freeze for DisplayMessageStatus
impl RefUnwindSafe for DisplayMessageStatus
impl Send for DisplayMessageStatus
impl Sync for DisplayMessageStatus
impl Unpin for DisplayMessageStatus
impl UnsafeUnpin for DisplayMessageStatus
impl UnwindSafe for DisplayMessageStatus
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