pub struct Login {
pub user: Option<User>,
pub auth_token: Option<String>,
}Expand description
Login response model containing user and authentication token
This struct represents the response from a login operation, containing the user information and authentication token.
§Examples
use qobuz_api_rust::models::{Login, User};
let login_response = Login {
user: Some(User::default()),
auth_token: Some("auth_token_123".to_string()),
};Fields§
§user: Option<User>User information returned with the login response
auth_token: Option<String>Authentication token for the logged-in user
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