Struct tosho_rbean::RBLoginResponse
source · pub struct RBLoginResponse {
pub token: String,
pub refresh_token: String,
pub platform: RBPlatform,
pub user: UserAccount,
pub google_account: IdentityToolkitAccountInfo,
pub expiry: i64,
}
Expand description
Represents the login response from the 小豆 (Red Bean) API
The following struct is returned when you use RBClient::login
method.
This struct wraps some other struct that can be useful for config building yourself.
Fields§
§token: String
The token of the account
refresh_token: String
The refresh token of the account
platform: RBPlatform
The platform of the account
user: UserAccount
Detailed account information
google_account: IdentityToolkitAccountInfo
Detailed google account information
expiry: i64
Expiry time of the token
Trait Implementations§
source§impl Clone for RBLoginResponse
impl Clone for RBLoginResponse
source§fn clone(&self) -> RBLoginResponse
fn clone(&self) -> RBLoginResponse
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for RBLoginResponse
impl RefUnwindSafe for RBLoginResponse
impl Send for RBLoginResponse
impl Sync for RBLoginResponse
impl Unpin for RBLoginResponse
impl UnwindSafe for RBLoginResponse
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§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>
Converts
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>
Converts
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