pub struct LoginDeviceRequest {
pub device_type: DeviceType,
pub device_identifier: String,
pub device_name: String,
pub device_push_token: Option<String>,
}Expand description
Device information for login requests. This is common across all login mechanisms and describes the device making the authentication request.
Fields§
§device_type: DeviceTypeThe type of device making the login request Note: today, we already have the DeviceType on the ApiConfigurations but we do not have the other device fields so we will accept the device data at login time for now. In the future, we might refactor the unauthN client to instantiate with full device info which would deprecate this struct. However, using the device_type here allows us to avoid any timing issues in scenarios where the device type could change between client instantiation and login (unlikely but possible).
device_identifier: StringUnique identifier for the device
device_name: StringHuman-readable name of the device
device_push_token: Option<String>Push notification token for the device (only for mobile devices)
Trait Implementations§
Source§impl Debug for LoginDeviceRequest
impl Debug for LoginDeviceRequest
Source§impl<'de> Deserialize<'de> for LoginDeviceRequest
impl<'de> Deserialize<'de> for LoginDeviceRequest
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>,
Auto Trait Implementations§
impl Freeze for LoginDeviceRequest
impl RefUnwindSafe for LoginDeviceRequest
impl Send for LoginDeviceRequest
impl Sync for LoginDeviceRequest
impl Unpin for LoginDeviceRequest
impl UnsafeUnpin for LoginDeviceRequest
impl UnwindSafe for LoginDeviceRequest
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more