pub struct RetriveTokens {
pub username: Username,
pub password: Password,
/* private fields */
}
Available on crate feature
oauth
only.Expand description
Log into an account.
Makes a request to POST https://auth.mangadex.org/realms/mangadex/protocol/openid-connect/token
.
Fields§
§username: Username
§password: Password
Implementations§
Source§impl RetriveTokens
impl RetriveTokens
pub async fn send(&mut self) -> Result<OAuthTokenResponse>
Trait Implementations§
Source§impl Clone for RetriveTokens
impl Clone for RetriveTokens
Source§fn clone(&self) -> RetriveTokens
fn clone(&self) -> RetriveTokens
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 RetriveTokens
impl !RefUnwindSafe for RetriveTokens
impl !Send for RetriveTokens
impl !Sync for RetriveTokens
impl Unpin for RetriveTokens
impl !UnwindSafe for RetriveTokens
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