#[non_exhaustive]pub enum ValueFormat {
Raw,
SignedData,
UnknownValue(String),
}Expand description
The OCPP 1.6 ValueFormat enumeration.
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.
Raw
Raw.
SignedData
SignedData.
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 ValueFormat
impl Clone for ValueFormat
Source§fn clone(&self) -> ValueFormat
fn clone(&self) -> ValueFormat
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 moreSource§impl Debug for ValueFormat
impl Debug for ValueFormat
Source§impl<'de> Deserialize<'de> for ValueFormat
impl<'de> Deserialize<'de> for ValueFormat
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 ValueFormat
impl Display for ValueFormat
impl Eq for ValueFormat
Source§impl FromStr for ValueFormat
impl FromStr for ValueFormat
Source§impl Hash for ValueFormat
impl Hash for ValueFormat
Source§impl Ord for ValueFormat
impl Ord for ValueFormat
Source§fn cmp(&self, other: &ValueFormat) -> Ordering
fn cmp(&self, other: &ValueFormat) -> 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
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 ValueFormat
impl PartialEq for ValueFormat
Source§impl PartialOrd for ValueFormat
impl PartialOrd for ValueFormat
Source§impl Serialize for ValueFormat
impl Serialize for ValueFormat
impl StructuralPartialEq for ValueFormat
Source§impl Validate for ValueFormat
impl Validate for ValueFormat
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 Freeze for ValueFormat
impl RefUnwindSafe for ValueFormat
impl Send for ValueFormat
impl Sync for ValueFormat
impl Unpin for ValueFormat
impl UnsafeUnpin for ValueFormat
impl UnwindSafe for ValueFormat
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