#[non_exhaustive]pub enum RemoteStartStopStatus {
Accepted,
Rejected,
UnknownValue(String),
}Expand description
The OCPP 1.6 RemoteStartStopStatus enumeration.
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 RemoteStartStopStatus
impl Clone for RemoteStartStopStatus
Source§impl Debug for RemoteStartStopStatus
impl Debug for RemoteStartStopStatus
Source§impl<'de> Deserialize<'de> for RemoteStartStopStatus
impl<'de> Deserialize<'de> for RemoteStartStopStatus
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 RemoteStartStopStatus
impl Display for RemoteStartStopStatus
impl Eq for RemoteStartStopStatus
Source§impl FromStr for RemoteStartStopStatus
impl FromStr for RemoteStartStopStatus
Source§impl Hash for RemoteStartStopStatus
impl Hash for RemoteStartStopStatus
Source§impl Ord for RemoteStartStopStatus
impl Ord for RemoteStartStopStatus
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 RemoteStartStopStatus
impl PartialEq for RemoteStartStopStatus
Source§impl PartialOrd for RemoteStartStopStatus
impl PartialOrd for RemoteStartStopStatus
Source§impl Serialize for RemoteStartStopStatus
impl Serialize for RemoteStartStopStatus
impl StructuralPartialEq for RemoteStartStopStatus
Source§impl Validate for RemoteStartStopStatus
impl Validate for RemoteStartStopStatus
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 RemoteStartStopStatus
impl Freeze for RemoteStartStopStatus
impl Move for RemoteStartStopStatus
impl RefUnwindSafe for RemoteStartStopStatus
impl Send for RemoteStartStopStatus
impl Sync for RemoteStartStopStatus
impl Unpin for RemoteStartStopStatus
impl UnsafeUnpin for RemoteStartStopStatus
impl UnwindSafe for RemoteStartStopStatus
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