pub struct TokenRequest {
pub grant_type: String,
pub code: Option<String>,
pub redirect_uri: Option<String>,
pub client_id: String,
pub client_secret: Option<String>,
pub code_verifier: Option<String>,
pub refresh_token: Option<String>,
pub scopes: Option<Vec<String>>,
}Expand description
Token request parameters.
Fields§
§grant_type: StringGrant type.
code: Option<String>Authorization code (for authorization_code grant).
redirect_uri: Option<String>Redirect URI (for authorization_code grant).
client_id: StringClient ID.
client_secret: Option<String>Client secret (for confidential clients).
code_verifier: Option<String>PKCE code verifier.
refresh_token: Option<String>Refresh token (for refresh_token grant).
scopes: Option<Vec<String>>Requested scopes (for refresh_token grant, subset of original scopes).
Trait Implementations§
Source§impl Clone for TokenRequest
impl Clone for TokenRequest
Source§fn clone(&self) -> TokenRequest
fn clone(&self) -> TokenRequest
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 TokenRequest
impl RefUnwindSafe for TokenRequest
impl Send for TokenRequest
impl Sync for TokenRequest
impl Unpin for TokenRequest
impl UnwindSafe for TokenRequest
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).