pub struct AuthorizationData {
pub id_token: IdToken,
pub id_token_info: Option<IdTokenInfo>,
pub custom_data: Option<CustomData>,
}Expand description
Contains the identifier to use for authorization.
The OCPP 2.1 AuthorizationData data type.
Fields§
§id_token: IdTokenThe idToken member.
id_token_info: Option<IdTokenInfo>The idTokenInfo member.
custom_data: Option<CustomData>The customData member.
Implementations§
Source§impl AuthorizationData
impl AuthorizationData
Sourcepub fn with_id_token_info(self, value: IdTokenInfo) -> Self
pub fn with_id_token_info(self, value: IdTokenInfo) -> Self
Sets the optional idTokenInfo field.
Sourcepub fn with_custom_data(self, value: CustomData) -> Self
pub fn with_custom_data(self, value: CustomData) -> Self
Sets the optional customData field.
Trait Implementations§
Source§impl Clone for AuthorizationData
impl Clone for AuthorizationData
Source§impl Debug for AuthorizationData
impl Debug for AuthorizationData
Source§impl<'de> Deserialize<'de> for AuthorizationData
impl<'de> Deserialize<'de> for AuthorizationData
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 PartialEq for AuthorizationData
impl PartialEq for AuthorizationData
Source§impl Serialize for AuthorizationData
impl Serialize for AuthorizationData
impl StructuralPartialEq for AuthorizationData
Source§impl Validate for AuthorizationData
impl Validate for AuthorizationData
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 AuthorizationData
impl Freeze for AuthorizationData
impl RefUnwindSafe for AuthorizationData
impl Send for AuthorizationData
impl Sync for AuthorizationData
impl Unpin for AuthorizationData
impl UnsafeUnpin for AuthorizationData
impl UnwindSafe for AuthorizationData
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