pub struct TokenExchangeParams {
pub token_url: Url,
pub code: String,
pub redirect_uri: Url,
pub client_id: String,
pub code_verifier: Option<String>,
pub state: Option<String>,
pub token_format: TokenFormat,
}Expand description
Parameters for the token exchange request body.
This is a pure data structure — the actual HTTP POST is performed by the I/O layer.
Fields§
§token_url: UrlThe token endpoint URL.
code: StringThe authorization code received from the authorization server.
redirect_uri: UrlThe redirect URI (must match the one used in the authorization request).
client_id: StringThe OAuth client identifier.
code_verifier: Option<String>The PKCE code verifier (if PKCE was used).
state: Option<String>The OAuth state parameter (included when the provider requires it in the token exchange body).
token_format: TokenFormatThe body format for the token endpoint request.
Implementations§
Trait Implementations§
Source§impl Clone for TokenExchangeParams
impl Clone for TokenExchangeParams
Source§fn clone(&self) -> TokenExchangeParams
fn clone(&self) -> TokenExchangeParams
Returns a duplicate 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 TokenExchangeParams
impl RefUnwindSafe for TokenExchangeParams
impl Send for TokenExchangeParams
impl Sync for TokenExchangeParams
impl Unpin for TokenExchangeParams
impl UnsafeUnpin for TokenExchangeParams
impl UnwindSafe for TokenExchangeParams
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