Skip to main content

IdTokenInfo

Struct IdTokenInfo 

Source
pub struct IdTokenInfo<const ID_TOKEN_INFO_CACHE_EXPIRY_DATE_TIME_CAP: usize = 1024, const ID_TOKEN_INFO_EVSE_ID_CAP: usize = 16, const ID_TOKEN_ADDITIONAL_INFO_CAP: usize = 16> {
    pub cache_expiry_date_time: Option<String<ID_TOKEN_INFO_CACHE_EXPIRY_DATE_TIME_CAP>>,
    pub charging_priority: Option<i64>,
    pub custom_data: Option<CustomData>,
    pub evse_id: Option<Vec<i64, ID_TOKEN_INFO_EVSE_ID_CAP>>,
    pub group_id_token: Option<IdToken<ID_TOKEN_ADDITIONAL_INFO_CAP>>,
    pub language1: Option<String<8usize>>,
    pub language2: Option<String<8usize>>,
    pub personal_message: Option<MessageContent>,
    pub status: AuthorizationStatusEnum,
}
Expand description

Contains status information about an identifier. It is advised to not stop charging for a token that expires during charging, as ExpiryDate is only used for caching purposes. If ExpiryDate is not given, the status has no end date.

Fields§

§cache_expiry_date_time: Option<String<ID_TOKEN_INFO_CACHE_EXPIRY_DATE_TIME_CAP>>

Date and Time after which the token must be considered invalid.

§charging_priority: Option<i64>

Priority from a business point of view. Default priority is 0, The range is from -9 to 9. Higher values indicate a higher priority. The chargingPriority in <<transactioneventresponse,TransactionEventResponse>> overrules this one.

§custom_data: Option<CustomData>§evse_id: Option<Vec<i64, ID_TOKEN_INFO_EVSE_ID_CAP>>

Only used when the IdToken is only valid for one or more specific EVSEs, not for the entire Charging Station.

§group_id_token: Option<IdToken<ID_TOKEN_ADDITIONAL_INFO_CAP>>§language1: Option<String<8usize>>

Preferred user interface language of identifier user. Contains a language code as defined in <<ref-RFC5646,[RFC5646]>>.

§language2: Option<String<8usize>>

Second preferred user interface language of identifier user. Don’t use when language1 is omitted, has to be different from language1. Contains a language code as defined in <<ref-RFC5646,[RFC5646]>>.

§personal_message: Option<MessageContent>§status: AuthorizationStatusEnum

Trait Implementations§

Source§

impl<const ID_TOKEN_INFO_CACHE_EXPIRY_DATE_TIME_CAP: usize, const ID_TOKEN_INFO_EVSE_ID_CAP: usize, const ID_TOKEN_ADDITIONAL_INFO_CAP: usize> Clone for IdTokenInfo<ID_TOKEN_INFO_CACHE_EXPIRY_DATE_TIME_CAP, ID_TOKEN_INFO_EVSE_ID_CAP, ID_TOKEN_ADDITIONAL_INFO_CAP>

Source§

fn clone( &self, ) -> IdTokenInfo<ID_TOKEN_INFO_CACHE_EXPIRY_DATE_TIME_CAP, ID_TOKEN_INFO_EVSE_ID_CAP, ID_TOKEN_ADDITIONAL_INFO_CAP>

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<const ID_TOKEN_INFO_CACHE_EXPIRY_DATE_TIME_CAP: usize, const ID_TOKEN_INFO_EVSE_ID_CAP: usize, const ID_TOKEN_ADDITIONAL_INFO_CAP: usize> Debug for IdTokenInfo<ID_TOKEN_INFO_CACHE_EXPIRY_DATE_TIME_CAP, ID_TOKEN_INFO_EVSE_ID_CAP, ID_TOKEN_ADDITIONAL_INFO_CAP>

Source§

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

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

impl<const ID_TOKEN_INFO_CACHE_EXPIRY_DATE_TIME_CAP: usize, const ID_TOKEN_INFO_EVSE_ID_CAP: usize, const ID_TOKEN_ADDITIONAL_INFO_CAP: usize> Eq for IdTokenInfo<ID_TOKEN_INFO_CACHE_EXPIRY_DATE_TIME_CAP, ID_TOKEN_INFO_EVSE_ID_CAP, ID_TOKEN_ADDITIONAL_INFO_CAP>

Source§

impl<const ID_TOKEN_INFO_CACHE_EXPIRY_DATE_TIME_CAP: usize, const ID_TOKEN_INFO_EVSE_ID_CAP: usize, const ID_TOKEN_ADDITIONAL_INFO_CAP: usize> PartialEq for IdTokenInfo<ID_TOKEN_INFO_CACHE_EXPIRY_DATE_TIME_CAP, ID_TOKEN_INFO_EVSE_ID_CAP, ID_TOKEN_ADDITIONAL_INFO_CAP>

Source§

fn eq( &self, other: &IdTokenInfo<ID_TOKEN_INFO_CACHE_EXPIRY_DATE_TIME_CAP, ID_TOKEN_INFO_EVSE_ID_CAP, ID_TOKEN_ADDITIONAL_INFO_CAP>, ) -> bool

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

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

Inequality operator !=. Read more
Source§

impl<const ID_TOKEN_INFO_CACHE_EXPIRY_DATE_TIME_CAP: usize, const ID_TOKEN_INFO_EVSE_ID_CAP: usize, const ID_TOKEN_ADDITIONAL_INFO_CAP: usize> StructuralPartialEq for IdTokenInfo<ID_TOKEN_INFO_CACHE_EXPIRY_DATE_TIME_CAP, ID_TOKEN_INFO_EVSE_ID_CAP, ID_TOKEN_ADDITIONAL_INFO_CAP>

Auto Trait Implementations§

§

impl<const ID_TOKEN_INFO_CACHE_EXPIRY_DATE_TIME_CAP: usize, const ID_TOKEN_INFO_EVSE_ID_CAP: usize, const ID_TOKEN_ADDITIONAL_INFO_CAP: usize> Freeze for IdTokenInfo<ID_TOKEN_INFO_CACHE_EXPIRY_DATE_TIME_CAP, ID_TOKEN_INFO_EVSE_ID_CAP, ID_TOKEN_ADDITIONAL_INFO_CAP>

§

impl<const ID_TOKEN_INFO_CACHE_EXPIRY_DATE_TIME_CAP: usize, const ID_TOKEN_INFO_EVSE_ID_CAP: usize, const ID_TOKEN_ADDITIONAL_INFO_CAP: usize> RefUnwindSafe for IdTokenInfo<ID_TOKEN_INFO_CACHE_EXPIRY_DATE_TIME_CAP, ID_TOKEN_INFO_EVSE_ID_CAP, ID_TOKEN_ADDITIONAL_INFO_CAP>

§

impl<const ID_TOKEN_INFO_CACHE_EXPIRY_DATE_TIME_CAP: usize, const ID_TOKEN_INFO_EVSE_ID_CAP: usize, const ID_TOKEN_ADDITIONAL_INFO_CAP: usize> Send for IdTokenInfo<ID_TOKEN_INFO_CACHE_EXPIRY_DATE_TIME_CAP, ID_TOKEN_INFO_EVSE_ID_CAP, ID_TOKEN_ADDITIONAL_INFO_CAP>

§

impl<const ID_TOKEN_INFO_CACHE_EXPIRY_DATE_TIME_CAP: usize, const ID_TOKEN_INFO_EVSE_ID_CAP: usize, const ID_TOKEN_ADDITIONAL_INFO_CAP: usize> Sync for IdTokenInfo<ID_TOKEN_INFO_CACHE_EXPIRY_DATE_TIME_CAP, ID_TOKEN_INFO_EVSE_ID_CAP, ID_TOKEN_ADDITIONAL_INFO_CAP>

§

impl<const ID_TOKEN_INFO_CACHE_EXPIRY_DATE_TIME_CAP: usize, const ID_TOKEN_INFO_EVSE_ID_CAP: usize, const ID_TOKEN_ADDITIONAL_INFO_CAP: usize> Unpin for IdTokenInfo<ID_TOKEN_INFO_CACHE_EXPIRY_DATE_TIME_CAP, ID_TOKEN_INFO_EVSE_ID_CAP, ID_TOKEN_ADDITIONAL_INFO_CAP>

§

impl<const ID_TOKEN_INFO_CACHE_EXPIRY_DATE_TIME_CAP: usize, const ID_TOKEN_INFO_EVSE_ID_CAP: usize, const ID_TOKEN_ADDITIONAL_INFO_CAP: usize> UnsafeUnpin for IdTokenInfo<ID_TOKEN_INFO_CACHE_EXPIRY_DATE_TIME_CAP, ID_TOKEN_INFO_EVSE_ID_CAP, ID_TOKEN_ADDITIONAL_INFO_CAP>

§

impl<const ID_TOKEN_INFO_CACHE_EXPIRY_DATE_TIME_CAP: usize, const ID_TOKEN_INFO_EVSE_ID_CAP: usize, const ID_TOKEN_ADDITIONAL_INFO_CAP: usize> UnwindSafe for IdTokenInfo<ID_TOKEN_INFO_CACHE_EXPIRY_DATE_TIME_CAP, ID_TOKEN_INFO_EVSE_ID_CAP, ID_TOKEN_ADDITIONAL_INFO_CAP>

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> 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, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.