pub enum Status {
Available,
Blocked,
Charging,
Inoperative,
OutOfOrder,
Planned,
Removed,
Reserved,
Unknown,
}v2_3_0 only.Expand description
The status of an EVSE.
An EVSE is never deleted; a removed EVSE gets
statusREMOVED.
Spec: 2.3.0 §mod_locations_status_enum
Variants§
Available
The EVSE/Connector is able to start a new charging session.
Wire value: AVAILABLE
Blocked
Not accessible because of a physical barrier, e.g. a car.
Wire value: BLOCKED
Charging
The EVSE/Connector is in use.
Wire value: CHARGING
Inoperative
Not yet active, or temporarily unavailable, but not broken.
Wire value: INOPERATIVE
OutOfOrder
Currently out of order; some parts may be broken or defective.
Wire value: OUTOFORDER
Planned
Planned, will be operating soon.
Wire value: PLANNED
Removed
Discontinued or removed.
Wire value: REMOVED
Reserved
Reserved for a particular EV driver and unavailable for other drivers.
Wire value: RESERVED
Unknown
No status information available; also used when offline.
Wire value: UNKNOWN
Implementations§
Source§impl Status
impl Status
Sourcepub const ALL_WIRE: &'static [&'static str]
pub const ALL_WIRE: &'static [&'static str]
Every wire value this enum accepts, in declaration order.
Sourcepub fn from_str_ignore_case(s: &str) -> Option<Self>
pub fn from_str_ignore_case(s: &str) -> Option<Self>
Parses a wire value, ignoring ASCII case.
OCPI enum values are case-sensitive, so this is only for peers known to get the
case wrong; FromStr is the strict version.
Trait Implementations§
impl Copy for Status
Source§impl<'de> Deserialize<'de> for Status
impl<'de> Deserialize<'de> for Status
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
impl Eq for Status
Source§impl JsonSchema for Status
impl JsonSchema for Status
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 Status
impl Ord for Status
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 PartialOrd for Status
impl PartialOrd for Status
impl StructuralPartialEq for Status
Auto Trait Implementations§
impl Freeze for Status
impl RefUnwindSafe for Status
impl Send for Status
impl Sync for Status
impl Unpin for Status
impl UnsafeUnpin for Status
impl UnwindSafe for Status
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.