pub enum ChargingPreferencesResponse {
Accepted,
DepartureRequired,
EnergyNeedRequired,
NotPossible,
ProfileTypeNotSupported,
}v2_3_0 only.Expand description
Possible responses to a PUT of ChargingPreferences.
If a PUT with ChargingPreferences is received for an EVSE that does not have the capability
CHARGING_PREFERENCES_CAPABLE, the receiver should respond with an HTTP status of 404 and an OCPI status code of 2001.
Spec: 2.3.0 §mod_sessions_charging_preferences_response_enum
Variants§
Accepted
Accepted; the EVSE will try to accomplish them, without guarantee.
Wire value: ACCEPTED
DepartureRequired
The CPO requires departure_time for preference-based smart charging.
Wire value: DEPARTURE_REQUIRED
EnergyNeedRequired
The CPO requires energy_need for preference-based smart charging.
Wire value: ENERGY_NEED_REQUIRED
NotPossible
The preferences contain a demand the EVSE knows it cannot fulfil.
Wire value: NOT_POSSIBLE
ProfileTypeNotSupported
profile_type contains a value the EVSE does not support.
Wire value: PROFILE_TYPE_NOT_SUPPORTED
Implementations§
Source§impl ChargingPreferencesResponse
impl ChargingPreferencesResponse
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§
Source§impl Clone for ChargingPreferencesResponse
impl Clone for ChargingPreferencesResponse
Source§fn clone(&self) -> ChargingPreferencesResponse
fn clone(&self) -> ChargingPreferencesResponse
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ChargingPreferencesResponse
Source§impl Debug for ChargingPreferencesResponse
impl Debug for ChargingPreferencesResponse
Source§impl<'de> Deserialize<'de> for ChargingPreferencesResponse
impl<'de> Deserialize<'de> for ChargingPreferencesResponse
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 ChargingPreferencesResponse
Source§impl Hash for ChargingPreferencesResponse
impl Hash for ChargingPreferencesResponse
Source§impl JsonSchema for ChargingPreferencesResponse
impl JsonSchema for ChargingPreferencesResponse
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 ChargingPreferencesResponse
impl Ord for ChargingPreferencesResponse
Source§fn cmp(&self, other: &ChargingPreferencesResponse) -> Ordering
fn cmp(&self, other: &ChargingPreferencesResponse) -> Ordering
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 ChargingPreferencesResponse
impl PartialOrd for ChargingPreferencesResponse
impl StructuralPartialEq for ChargingPreferencesResponse
Auto Trait Implementations§
impl Freeze for ChargingPreferencesResponse
impl RefUnwindSafe for ChargingPreferencesResponse
impl Send for ChargingPreferencesResponse
impl Sync for ChargingPreferencesResponse
impl Unpin for ChargingPreferencesResponse
impl UnsafeUnpin for ChargingPreferencesResponse
impl UnwindSafe for ChargingPreferencesResponse
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.