pub struct LoginResponse {
pub user: LoginUserInfo,
pub admin_ui_access: bool,
pub expires_at: String,
pub access_token: String,
pub refresh_token: Option<String>,
pub refresh_expires_at: Option<String>,
}Expand description
Login response from the server
Fields§
§user: LoginUserInfoAuthenticated user information
admin_ui_access: boolWhether this account can access the Admin UI
expires_at: StringToken expiration time in RFC3339 format
access_token: StringJWT access token for subsequent API calls
refresh_token: Option<String>Refresh token for obtaining new access tokens (longer-lived)
refresh_expires_at: Option<String>Refresh token expiration time in RFC3339 format
Trait Implementations§
Source§impl Clone for LoginResponse
impl Clone for LoginResponse
Source§fn clone(&self) -> LoginResponse
fn clone(&self) -> LoginResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LoginResponse
impl Debug for LoginResponse
Source§impl<'de> Deserialize<'de> for LoginResponse
impl<'de> Deserialize<'de> for LoginResponse
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<LoginResponse, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<LoginResponse, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for LoginResponse
impl Serialize for LoginResponse
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for LoginResponse
impl RefUnwindSafe for LoginResponse
impl Send for LoginResponse
impl Sync for LoginResponse
impl Unpin for LoginResponse
impl UnsafeUnpin for LoginResponse
impl UnwindSafe for LoginResponse
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