#[non_exhaustive]pub enum ConnectorCapability {
Iso151182PlugAndCharge,
Iso1511820PlugAndCharge,
Custom(String),
}v2_3_0 only.Expand description
Functionalities that a Connector may or may not support. New in OCPI 2.3.0.
NOTE: these capabilities are meant to signal to eMSPs and their Drivers that a Driver can indeed use these functionalities at a Connector. Mere support for a standard by the charging hardware is not enough to warrant the presence of these capabilities.
Spec: 2.3.0 §mod_locations_connectorcapability_enum
This is an OCPI OpenEnum: a value this version of the specification does not
define is a legitimate extension, and Validate does
not report it.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Iso151182PlugAndCharge
Driver authentication with a contract certificate per ISO 15118-2.
Wire value: ISO_15118_2_PLUG_AND_CHARGE
Iso1511820PlugAndCharge
Driver authentication with a contract certificate per ISO 15118-20.
Wire value: ISO_15118_20_PLUG_AND_CHARGE
Custom(String)
A value this version of the specification does not define, preserved verbatim.
The variant is named Custom rather than Other because several OCPI OpenEnums
have a defined value that is literally OTHER.
Implementations§
Source§impl ConnectorCapability
impl ConnectorCapability
Sourcepub const ALL_KNOWN: &'static [Self]
pub const ALL_KNOWN: &'static [Self]
Every value this version of the specification defines, in declaration order.
Sourcepub const ALL_KNOWN_WIRE: &'static [&'static str]
pub const ALL_KNOWN_WIRE: &'static [&'static str]
Every wire value this version of the specification defines.
Sourcepub fn from_str_ignore_case(s: &str) -> Self
pub fn from_str_ignore_case(s: &str) -> Self
Parses a wire value, ignoring ASCII case for the known values.
For peers that get the case wrong; FromStr is strict.
Trait Implementations§
Source§impl Clone for ConnectorCapability
impl Clone for ConnectorCapability
Source§fn clone(&self) -> ConnectorCapability
fn clone(&self) -> ConnectorCapability
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ConnectorCapability
impl Debug for ConnectorCapability
Source§impl<'de> Deserialize<'de> for ConnectorCapability
impl<'de> Deserialize<'de> for ConnectorCapability
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Source§impl Display for ConnectorCapability
impl Display for ConnectorCapability
impl Eq for ConnectorCapability
Source§impl From<&str> for ConnectorCapability
impl From<&str> for ConnectorCapability
Source§impl FromStr for ConnectorCapability
impl FromStr for ConnectorCapability
Source§impl Hash for ConnectorCapability
impl Hash for ConnectorCapability
Source§impl JsonSchema for ConnectorCapability
impl JsonSchema for ConnectorCapability
Source§fn json_schema(_g: &mut SchemaGenerator) -> Schema
fn json_schema(_g: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl Ord for ConnectorCapability
impl Ord for ConnectorCapability
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for ConnectorCapability
impl PartialEq for ConnectorCapability
Source§impl PartialOrd for ConnectorCapability
impl PartialOrd for ConnectorCapability
Source§impl Serialize for ConnectorCapability
impl Serialize for ConnectorCapability
Source§impl Validate for ConnectorCapability
impl Validate for ConnectorCapability
Auto Trait Implementations§
impl Freeze for ConnectorCapability
impl RefUnwindSafe for ConnectorCapability
impl Send for ConnectorCapability
impl Sync for ConnectorCapability
impl Unpin for ConnectorCapability
impl UnsafeUnpin for ConnectorCapability
impl UnwindSafe for ConnectorCapability
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.