#[non_exhaustive]pub enum OCPPInterface {
Wired0,
Wired1,
Wired2,
Wired3,
Wireless0,
Wireless1,
Wireless2,
Wireless3,
Any,
UnknownValue(String),
}Expand description
Applicable Network Interface. Charging Station is allowed to use a different network interface to connect if the given one does not work.
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.
Wired0
Wired0.
Wired1
Wired1.
Wired2
Wired2.
Wired3
Wired3.
Wireless0
Wireless0.
Wireless1
Wireless1.
Wireless2
Wireless2.
Wireless3
Wireless3.
Any
Any.
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 OCPPInterface
impl Clone for OCPPInterface
Source§impl Debug for OCPPInterface
impl Debug for OCPPInterface
Source§impl<'de> Deserialize<'de> for OCPPInterface
impl<'de> Deserialize<'de> for OCPPInterface
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 OCPPInterface
impl Display for OCPPInterface
impl Eq for OCPPInterface
Source§impl FromStr for OCPPInterface
impl FromStr for OCPPInterface
Source§impl Hash for OCPPInterface
impl Hash for OCPPInterface
Source§impl Ord for OCPPInterface
impl Ord for OCPPInterface
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 OCPPInterface
impl PartialEq for OCPPInterface
Source§impl PartialOrd for OCPPInterface
impl PartialOrd for OCPPInterface
Source§impl Serialize for OCPPInterface
impl Serialize for OCPPInterface
impl StructuralPartialEq for OCPPInterface
Source§impl Validate for OCPPInterface
impl Validate for OCPPInterface
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 OCPPInterface
impl Freeze for OCPPInterface
impl Move for OCPPInterface
impl RefUnwindSafe for OCPPInterface
impl Send for OCPPInterface
impl Sync for OCPPInterface
impl Unpin for OCPPInterface
impl UnsafeUnpin for OCPPInterface
impl UnwindSafe for OCPPInterface
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