pub struct CdrToken {
pub country_code: CountryCode,
pub party_id: PartyId,
pub uid: CiString<36>,
pub token_type: TokenType,
pub contract_id: ContractId,
pub extensions: Extensions,
}Available on crate feature
v2_3_0 only.Expand description
The token that started a session, as recorded in a CDR or Session.
Spec: 2.3.0 §mod_cdrs_cdr_token_object
Fields§
§country_code: CountryCodeISO-3166 alpha-2 country code of the MSP that ‘owns’ this Token.
party_id: PartyIdID of the eMSP that ‘owns’ this Token.
uid: CiString<36>Unique ID by which this Token can be identified by the CPO’s system.
token_type: TokenTypeType of the token.
contract_id: ContractIdUniquely identifies the EV driver contract token within the eMSP’s platform.
extensions: ExtensionsUndocumented JSON fields, preserved verbatim.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CdrToken
impl<'de> Deserialize<'de> for CdrToken
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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 JsonSchema for CdrToken
impl JsonSchema for CdrToken
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for CdrToken
Auto Trait Implementations§
impl Freeze for CdrToken
impl RefUnwindSafe for CdrToken
impl Send for CdrToken
impl Sync for CdrToken
impl Unpin for CdrToken
impl UnsafeUnpin for CdrToken
impl UnwindSafe for CdrToken
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