pub struct ExchangeCodeBuilder<'a> { /* private fields */ }Expand description
Authorization-code exchange builder returned by OAuth2Client::exchange_code.
Implementations§
Source§impl ExchangeCodeBuilder<'_>
impl ExchangeCodeBuilder<'_>
pub fn code_verifier(self, code_verifier: impl Into<String>) -> Self
pub fn device_id(self, device_id: impl Into<String>) -> Self
pub fn authentication(self, authentication: ClientAuthentication) -> Self
pub fn header(self, key: impl Into<String>, value: impl Into<String>) -> Self
pub fn additional_param( self, key: impl Into<String>, value: impl Into<String>, ) -> Self
pub fn override_param( self, key: impl Into<String>, value: impl Into<String>, ) -> Self
pub fn resource(self, resource: impl Into<String>) -> Self
pub fn into_form_request(self) -> Result<OAuthFormRequest, OAuthError>
pub async fn send(self) -> Result<OAuth2Tokens, OAuthError>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ExchangeCodeBuilder<'a>
impl<'a> !UnwindSafe for ExchangeCodeBuilder<'a>
impl<'a> Freeze for ExchangeCodeBuilder<'a>
impl<'a> Send for ExchangeCodeBuilder<'a>
impl<'a> Sync for ExchangeCodeBuilder<'a>
impl<'a> Unpin for ExchangeCodeBuilder<'a>
impl<'a> UnsafeUnpin for ExchangeCodeBuilder<'a>
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