#[non_exhaustive]pub enum InstallCertificateUse {
V2GRootCertificate,
MORootCertificate,
ManufacturerRootCertificate,
CSMSRootCertificate,
OEMRootCertificate,
UnknownValue(String),
}Expand description
Indicates the certificate type that is sent.
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.
V2GRootCertificate
V2GRootCertificate.
MORootCertificate
MORootCertificate.
ManufacturerRootCertificate
ManufacturerRootCertificate.
CSMSRootCertificate
CSMSRootCertificate.
OEMRootCertificate
OEMRootCertificate.
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 InstallCertificateUse
impl Clone for InstallCertificateUse
Source§impl Debug for InstallCertificateUse
impl Debug for InstallCertificateUse
Source§impl<'de> Deserialize<'de> for InstallCertificateUse
impl<'de> Deserialize<'de> for InstallCertificateUse
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 InstallCertificateUse
impl Display for InstallCertificateUse
impl Eq for InstallCertificateUse
Source§impl FromStr for InstallCertificateUse
impl FromStr for InstallCertificateUse
Source§impl Hash for InstallCertificateUse
impl Hash for InstallCertificateUse
Source§impl Ord for InstallCertificateUse
impl Ord for InstallCertificateUse
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 InstallCertificateUse
impl PartialEq for InstallCertificateUse
Source§impl PartialOrd for InstallCertificateUse
impl PartialOrd for InstallCertificateUse
Source§impl Serialize for InstallCertificateUse
impl Serialize for InstallCertificateUse
impl StructuralPartialEq for InstallCertificateUse
Source§impl Validate for InstallCertificateUse
impl Validate for InstallCertificateUse
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 Forget for InstallCertificateUse
impl Freeze for InstallCertificateUse
impl Move for InstallCertificateUse
impl RefUnwindSafe for InstallCertificateUse
impl Send for InstallCertificateUse
impl Sync for InstallCertificateUse
impl Unpin for InstallCertificateUse
impl UnsafeUnpin for InstallCertificateUse
impl UnwindSafe for InstallCertificateUse
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