pub struct IdToken<CustomDataType = NoCustomData> {
pub additional_info: Option<Vec<AdditionalInfo<CustomDataType>>>,
pub custom_data: Option<CustomDataType>,
pub id_token: String<255usize>,
pub type: String<20usize>,
}Expand description
Contains a case insensitive identifier to use for the authorization and the type of authorization to support multiple forms of identifiers.
Fields§
§additional_info: Option<Vec<AdditionalInfo<CustomDataType>>>§custom_data: Option<CustomDataType>§id_token: String<255usize>(2.1) IdToken is case insensitive. Might hold the hidden id of an RFID tag, but can for example also contain a UUID.
type: String<20usize>(2.1) Enumeration of possible idToken types. Values defined in Appendix as IdTokenEnumStringType.
Trait Implementations§
Source§impl<'de, CustomDataType> Deserialize<'de> for IdToken<CustomDataType>where
CustomDataType: Deserialize<'de>,
impl<'de, CustomDataType> Deserialize<'de> for IdToken<CustomDataType>where
CustomDataType: Deserialize<'de>,
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
impl<CustomDataType: Eq> Eq for IdToken<CustomDataType>
impl<CustomDataType: PartialEq> StructuralPartialEq for IdToken<CustomDataType>
Auto Trait Implementations§
impl<CustomDataType> Freeze for IdToken<CustomDataType>where
CustomDataType: Freeze,
impl<CustomDataType> RefUnwindSafe for IdToken<CustomDataType>where
CustomDataType: RefUnwindSafe,
impl<CustomDataType> Send for IdToken<CustomDataType>where
CustomDataType: Send,
impl<CustomDataType> Sync for IdToken<CustomDataType>where
CustomDataType: Sync,
impl<CustomDataType> Unpin for IdToken<CustomDataType>where
CustomDataType: Unpin,
impl<CustomDataType> UnsafeUnpin for IdToken<CustomDataType>where
CustomDataType: UnsafeUnpin,
impl<CustomDataType> UnwindSafe for IdToken<CustomDataType>where
CustomDataType: UnwindSafe,
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