Skip to main content

AuthPath

Enum AuthPath 

Source
#[non_exhaustive]
pub enum AuthPath { LocalList, Roaming, AdHoc, PlugAndCharge, AutoCharge, RemoteCommand, }
Expand description

The mechanism that authorised a session.

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.
§

LocalList

The station’s own local authorisation list or cache decided.

§

Roaming

An Authorize went to the e-mobility provider, directly or through a roaming hub, and came back affirmative.

§

AdHoc

No contract at all: a payment card at the point, or a web/QR flow. The path AFIR requires every public point to offer.

§

PlugAndCharge

ISO 15118 Plug & Charge: the vehicle presented a contract certificate.

§

AutoCharge

The vehicle was recognised by its MAC address.

Not a standard, not authenticated, and trivially spoofable — it is modelled because the field uses it, and kept distinct from Self::PlugAndCharge because the two are constantly conflated in marketing and must never be conflated in evidence.

§

RemoteCommand

A backend command (RemoteStartTransaction, StartSession) began it.

Implementations§

Source§

impl AuthPath

Source

pub const fn is_contract_free(self) -> bool

Whether this path works without the driver holding a contract.

The AFIR Art. 5(1) question, asked of a session rather than of a station.

Source

pub const fn is_cryptographic(self) -> bool

Whether the driver was identified cryptographically.

Source

pub const fn strongest_plausible_level(self) -> IdentificationStrength

The strongest OCMF identification level this path can honestly support.

Used to cross-check a session against its own signed records: a session recorded as Self::AutoCharge whose record claims SECURE is two stories about one event, and the one with a signature behind it is not the one that can be right — a MAC address off the wire is not a secure feature under any reading of [OCMF Tab. 11].

The mapping is deliberately generous — it is a ceiling, not an expectation — because a station may under-report and that is not a fault. Over-reporting is.

§Read off Tables 13–16, not off the decision

[OCMF Tab. 11] grades how the user was identified; Tables 13–16 say which identifications each mechanism can carry. The two axes are largely orthogonal, so a ceiling set from who decided refuses ordinary hardware: a local list decides against an RFID card, and RFID_PSK [OCMF Tab. 13] — a secured card — is Table 11’s own example of SECURE. A backend Authorize can answer OCPP_CERTIFIED [OCMF Tab. 14], which is CERTIFIED; so can a remote start.

What stays low is what cannot rise: an unauthenticated MAC address, and an ad-hoc session that presented no contract for anything to certify.

Trait Implementations§

Source§

impl Clone for AuthPath

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for AuthPath

Source§

impl Debug for AuthPath

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for AuthPath

Source§

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 AuthPath

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for AuthPath

Source§

impl Hash for AuthPath

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for AuthPath

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for AuthPath

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for AuthPath

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.