pub enum ChargingLimitSource {
EMS,
Other,
SO,
CSO,
}Expand description
Standardized chargingLimitSource values.
2.1 widened this field from an enum to a string, so the values are only listed in the spec’s appendix rather than in the schema.
A closed set: it holds only the values the specification
defines. The wire field is a string, so a deployment can still
send something else – from_wire returns None for that,
which is not by itself a protocol error.
Variants§
EMS
Indicates that an Energy Management System has sent a charging limit.
Other
Indicates that an external source, not being an EMS or system operator, has sent a charging limit.
SO
Indicates that a System Operator (DSO or TSO) has sent a charging limit.
CSO
Indicates that the CSO has set this charging profile.
Implementations§
Source§impl ChargingLimitSource
impl ChargingLimitSource
Trait Implementations§
Source§impl Clone for ChargingLimitSource
impl Clone for ChargingLimitSource
Source§fn clone(&self) -> ChargingLimitSource
fn clone(&self) -> ChargingLimitSource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ChargingLimitSource
Source§impl Debug for ChargingLimitSource
impl Debug for ChargingLimitSource
Source§impl<'de> Deserialize<'de> for ChargingLimitSource
impl<'de> Deserialize<'de> for ChargingLimitSource
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ChargingLimitSource
impl Display for ChargingLimitSource
impl Eq for ChargingLimitSource
Source§impl FromStr for ChargingLimitSource
impl FromStr for ChargingLimitSource
Source§impl Hash for ChargingLimitSource
impl Hash for ChargingLimitSource
Source§impl Ord for ChargingLimitSource
impl Ord for ChargingLimitSource
Source§fn cmp(&self, other: &ChargingLimitSource) -> Ordering
fn cmp(&self, other: &ChargingLimitSource) -> Ordering
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
Source§impl PartialEq for ChargingLimitSource
impl PartialEq for ChargingLimitSource
Source§impl PartialOrd for ChargingLimitSource
impl PartialOrd for ChargingLimitSource
Source§impl Serialize for ChargingLimitSource
impl Serialize for ChargingLimitSource
impl StructuralPartialEq for ChargingLimitSource
Auto Trait Implementations§
impl Freeze for ChargingLimitSource
impl RefUnwindSafe for ChargingLimitSource
impl Send for ChargingLimitSource
impl Sync for ChargingLimitSource
impl Unpin for ChargingLimitSource
impl UnsafeUnpin for ChargingLimitSource
impl UnwindSafe for ChargingLimitSource
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