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 From<LoginDeviceRequest> for JsValuewhere
LoginDeviceRequest: Serialize,
impl From<LoginDeviceRequest> for JsValuewhere
LoginDeviceRequest: Serialize,
Source§fn from(value: LoginDeviceRequest) -> Self
fn from(value: LoginDeviceRequest) -> Self
Source§impl FromWasmAbi for LoginDeviceRequestwhere
Self: DeserializeOwned,
impl FromWasmAbi for LoginDeviceRequestwhere
Self: DeserializeOwned,
Source§impl IntoWasmAbi for &LoginDeviceRequestwhere
LoginDeviceRequest: Serialize,
impl IntoWasmAbi for &LoginDeviceRequestwhere
LoginDeviceRequest: Serialize,
Source§impl IntoWasmAbi for LoginDeviceRequestwhere
LoginDeviceRequest: Serialize,
impl IntoWasmAbi for LoginDeviceRequestwhere
LoginDeviceRequest: Serialize,
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 OptionFromWasmAbi for LoginDeviceRequestwhere
Self: DeserializeOwned,
impl OptionFromWasmAbi for LoginDeviceRequestwhere
Self: DeserializeOwned,
Source§impl OptionIntoWasmAbi for LoginDeviceRequestwhere
LoginDeviceRequest: Serialize,
impl OptionIntoWasmAbi for LoginDeviceRequestwhere
LoginDeviceRequest: Serialize,
Source§impl RefFromWasmAbi for LoginDeviceRequestwhere
Self: DeserializeOwned,
impl RefFromWasmAbi for LoginDeviceRequestwhere
Self: DeserializeOwned,
Source§type Abi = <JsType as RefFromWasmAbi>::Abi
type Abi = <JsType as RefFromWasmAbi>::Abi
Self are recovered from.Source§type Anchor = SelfOwner<LoginDeviceRequest>
type Anchor = SelfOwner<LoginDeviceRequest>
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl Serialize for LoginDeviceRequest
impl Serialize for LoginDeviceRequest
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
type JsType = JsType
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
Source§impl VectorFromWasmAbi for LoginDeviceRequestwhere
Self: DeserializeOwned,
impl VectorFromWasmAbi for LoginDeviceRequestwhere
Self: DeserializeOwned,
type Abi = <JsType as VectorFromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[Self]>
Source§impl VectorIntoWasmAbi for LoginDeviceRequestwhere
LoginDeviceRequest: Serialize,
impl VectorIntoWasmAbi for LoginDeviceRequestwhere
LoginDeviceRequest: Serialize,
type Abi = <JsType as VectorIntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[Self]>) -> Self::Abi
Source§impl WasmDescribe for LoginDeviceRequest
impl WasmDescribe for LoginDeviceRequest
Auto Trait Implementations§
impl Freeze for LoginDeviceRequest
impl RefUnwindSafe for LoginDeviceRequest
impl Send for LoginDeviceRequest
impl Sync for LoginDeviceRequest
impl Unpin 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<T> CompatExt for T
impl<T> CompatExt for T
§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>
§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§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.