pub enum IdStandard {
Iso,
Din,
Either,
}Expand description
Which of the two identifier standards a value follows.
Variants§
Iso
ISO 15118-1: alpha-2 country code, separators optional.
Din
DIN SPEC 91286:2011-11: ITU-T E.164 numeric country code, separators mandatory.
Either
The two grammars coincide for this identifier type, so the value does not say which.
ProviderId is the case: the specification lists DE8EO and DE-8EO as examples under
both headings, and only permits * as an additional separator under DIN. A value like
DE-8EO is therefore simultaneously a valid ISO and a valid DIN provider id, and this is
the honest answer to “which standard is it?” — not a guess at one of the two.
Implementations§
Trait Implementations§
Source§impl Clone for IdStandard
impl Clone for IdStandard
impl Copy for IdStandard
Source§impl Debug for IdStandard
impl Debug for IdStandard
Source§impl Display for IdStandard
impl Display for IdStandard
impl Eq for IdStandard
Source§impl Hash for IdStandard
impl Hash for IdStandard
Source§impl Ord for IdStandard
impl Ord for IdStandard
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 IdStandard
impl PartialEq for IdStandard
Source§impl PartialOrd for IdStandard
impl PartialOrd for IdStandard
impl StructuralPartialEq for IdStandard
Auto Trait Implementations§
impl Freeze for IdStandard
impl RefUnwindSafe for IdStandard
impl Send for IdStandard
impl Sync for IdStandard
impl Unpin for IdStandard
impl UnsafeUnpin for IdStandard
impl UnwindSafe for IdStandard
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.