#[non_exhaustive]pub enum AuthorizationStatus {
Accepted,
Blocked,
ConcurrentTx,
Expired,
Invalid,
NoCredit,
NotAllowedTypeEVSE,
NotAtThisLocation,
NotAtThisTime,
Unknown,
UnknownValue(String),
}Expand description
Current status of the ID Token.
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.
Accepted
Accepted.
Blocked
Blocked.
ConcurrentTx
ConcurrentTx.
Expired
Expired.
Invalid
Invalid.
NoCredit
NoCredit.
NotAllowedTypeEVSE
NotAllowedTypeEVSE.
NotAtThisLocation
NotAtThisLocation.
NotAtThisTime
NotAtThisTime.
Unknown
Unknown.
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 AuthorizationStatus
impl Clone for AuthorizationStatus
Source§impl Debug for AuthorizationStatus
impl Debug for AuthorizationStatus
Source§impl<'de> Deserialize<'de> for AuthorizationStatus
impl<'de> Deserialize<'de> for AuthorizationStatus
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 AuthorizationStatus
impl Display for AuthorizationStatus
impl Eq for AuthorizationStatus
Source§impl FromStr for AuthorizationStatus
impl FromStr for AuthorizationStatus
Source§impl Hash for AuthorizationStatus
impl Hash for AuthorizationStatus
Source§impl Ord for AuthorizationStatus
impl Ord for AuthorizationStatus
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 AuthorizationStatus
impl PartialEq for AuthorizationStatus
Source§impl PartialOrd for AuthorizationStatus
impl PartialOrd for AuthorizationStatus
Source§impl Serialize for AuthorizationStatus
impl Serialize for AuthorizationStatus
impl StructuralPartialEq for AuthorizationStatus
Source§impl Validate for AuthorizationStatus
impl Validate for AuthorizationStatus
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 AuthorizationStatus
impl Freeze for AuthorizationStatus
impl Move for AuthorizationStatus
impl RefUnwindSafe for AuthorizationStatus
impl Send for AuthorizationStatus
impl Sync for AuthorizationStatus
impl Unpin for AuthorizationStatus
impl UnsafeUnpin for AuthorizationStatus
impl UnwindSafe for AuthorizationStatus
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