pub struct Login {
pub user_id: u64,
pub country_iso: String,
pub country_code: String,
pub account_id: u64,
pub access_token: String,
pub refresh_token: String,
pub token_type: String,
pub auto_login_account_id: String,
pub display_account_id: String,
pub main_device_agent_name: String,
pub main_device_app_version: String,
}Fields§
§user_id: u64§country_iso: String§country_code: String§account_id: u64§access_token: String§refresh_token: String§token_type: String§auto_login_account_id: String§display_account_id: String§main_device_agent_name: String§main_device_app_version: StringImplementations§
Source§impl Login
impl Login
pub async fn request_with_account( client: AuthClient<'_, impl XvcHasher>, account: AccountForm<'_>, forced: bool, ) -> ApiResult<Self>
pub async fn request_with_token( client: AuthClient<'_, impl XvcHasher>, email: &str, token: &str, forced: bool, locked: bool, ) -> ApiResult<Self>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Login
impl<'de> Deserialize<'de> for Login
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
Auto Trait Implementations§
impl Freeze for Login
impl RefUnwindSafe for Login
impl Send for Login
impl Sync for Login
impl Unpin for Login
impl UnwindSafe for Login
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