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