pub struct RequestOauth2AccessToken(/* private fields */);
Available on crate feature
oauth2
only.Expand description
The authorization code grant type is used to obtain both access tokens and refresh tokens and is optimized for confidential clients. Since this is a redirection-based flow, the client must be capable of interacting with the resource owner’s user-agent (typically a web browser) and capable of receiving incoming requests (via redirection) from the authorization server.
Refs: https://datatracker.ietf.org/doc/html/rfc6749#section-4.1
Implementations§
Source§impl RequestOauth2AccessToken
impl RequestOauth2AccessToken
pub fn new(request: Builder, body: AccessTokenRequestParams<'_>) -> Result<Self>
pub fn resume( &mut self, input: Option<StreamIo>, ) -> RequestOauth2AccessTokenResult
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for RequestOauth2AccessToken
impl !RefUnwindSafe for RequestOauth2AccessToken
impl Send for RequestOauth2AccessToken
impl Sync for RequestOauth2AccessToken
impl Unpin for RequestOauth2AccessToken
impl !UnwindSafe for RequestOauth2AccessToken
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