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<UT> ConvertError<UT> for LoginDeviceRequest
impl<UT> ConvertError<UT> for LoginDeviceRequest
fn try_convert_unexpected_callback_error( e: UnexpectedUniFFICallbackError, ) -> Result<Self>
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>,
Source§impl<UT> FfiConverter<UT> for LoginDeviceRequest
impl<UT> FfiConverter<UT> for LoginDeviceRequest
Source§const TYPE_ID_META: MetadataBuffer
const TYPE_ID_META: MetadataBuffer
Source§type FfiType = RustBuffer
type FfiType = RustBuffer
Source§fn lower(v: Self) -> RustBuffer
fn lower(v: Self) -> RustBuffer
Source§fn try_lift(buf: RustBuffer) -> Result<Self>
fn try_lift(buf: RustBuffer) -> Result<Self>
Source§impl FromWasm for LoginDeviceRequest
Available on crate feature wasm only.
impl FromWasm for LoginDeviceRequest
wasm only.Source§impl<UT> Lift<UT> for LoginDeviceRequest
impl<UT> Lift<UT> for LoginDeviceRequest
Source§impl<UT> LiftRef<UT> for LoginDeviceRequest
impl<UT> LiftRef<UT> for LoginDeviceRequest
Source§impl<UT> LiftReturn<UT> for LoginDeviceRequest
impl<UT> LiftReturn<UT> for LoginDeviceRequest
Source§type ReturnType = <LoginDeviceRequest as Lift<UT>>::FfiType
type ReturnType = <LoginDeviceRequest as Lift<UT>>::FfiType
Source§fn try_lift_successful_return(v: Self::ReturnType) -> Result<Self>
fn try_lift_successful_return(v: Self::ReturnType) -> Result<Self>
§fn lift_foreign_return(
ffi_return: Self::ReturnType,
call_status: RustCallStatus,
) -> Self
fn lift_foreign_return( ffi_return: Self::ReturnType, call_status: RustCallStatus, ) -> Self
§fn lift_error(_buf: RustBuffer) -> Self
fn lift_error(_buf: RustBuffer) -> Self
§fn handle_callback_unexpected_error(e: UnexpectedUniFFICallbackError) -> Self
fn handle_callback_unexpected_error(e: UnexpectedUniFFICallbackError) -> Self
Source§impl<UT> Lower<UT> for LoginDeviceRequest
impl<UT> Lower<UT> for LoginDeviceRequest
Source§impl<UT> LowerError<UT> for LoginDeviceRequest
impl<UT> LowerError<UT> for LoginDeviceRequest
Source§fn lower_error(obj: Self) -> RustBuffer
fn lower_error(obj: Self) -> RustBuffer
Source§impl<UT> LowerReturn<UT> for LoginDeviceRequest
impl<UT> LowerReturn<UT> for LoginDeviceRequest
Source§type ReturnType = <LoginDeviceRequest as Lower<UT>>::FfiType
type ReturnType = <LoginDeviceRequest as Lower<UT>>::FfiType
Source§fn lower_return(v: Self) -> Result<Self::ReturnType, RustCallError>
fn lower_return(v: Self) -> Result<Self::ReturnType, RustCallError>
§fn handle_failed_lift(
error: LiftArgsError,
) -> Result<Self::ReturnType, RustCallError>
fn handle_failed_lift( error: LiftArgsError, ) -> Result<Self::ReturnType, RustCallError>
Source§impl Serialize for LoginDeviceRequest
impl Serialize for LoginDeviceRequest
Source§impl ToWasm for LoginDeviceRequest
Available on crate feature wasm only.
impl ToWasm for LoginDeviceRequest
wasm only.Source§impl Tsify for LoginDeviceRequest
impl Tsify for LoginDeviceRequest
const DECL: &'static str = "/**\n * Device information for login requests.\n * This is common across all login mechanisms and describes the device\n * making the authentication request.\n */\nexport interface LoginDeviceRequest {\n /**\n * The type of device making the login request\n * Note: today, we already have the DeviceType on the ApiConfigurations\n * but we do not have the other device fields so we will accept the device data at login time\n * for now. In the future, we might refactor the unauthN client to instantiate with full\n * device info which would deprecate this struct. However, using the device_type here\n * allows us to avoid any timing issues in scenarios where the device type could change\n * between client instantiation and login (unlikely but possible).\n */\n deviceType: DeviceType;\n /**\n * Unique identifier for the device\n */\n deviceIdentifier: string;\n /**\n * Human-readable name of the device\n */\n deviceName: string;\n /**\n * Push notification token for the device (only for mobile devices)\n */\n devicePushToken: string | undefined;\n}"
const SERIALIZATION_CONFIG: SerializationConfig
Source§type JsType = JsType
type JsType = JsType
#[wasm_bindgen] extern "C" { .. }.
[Ts<T>] is #[repr(transparent)] over this and passes it across the
ABI as a plain JS handle, which any other representation would break.fn into_js(&self) -> Result<Self::JsType, Error>where
Self: Serialize,
fn from_js<T>(js: T) -> Result<Self, Error>
Source§impl<UT> TypeId<UT> for LoginDeviceRequest
impl<UT> TypeId<UT> for LoginDeviceRequest
const TYPE_ID_META: MetadataBuffer
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§
§impl<T> AnySync for T
impl<T> AnySync for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> CompatExt for T
impl<T> CompatExt for T
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
§unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
Arc<> Read more§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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