pub struct TokenRequestForm {
pub grant_type: String,
pub code: Option<String>,
pub refresh_token: Option<String>,
pub redirect_uri: Option<String>,
pub code_verifier: Option<String>,
pub client_id: String,
pub client_secret: Option<String>,
pub scope: Option<String>,
}Expand description
An OAuth token-endpoint request form (code exchange or refresh grant),
serialized as application/x-www-form-urlencoded. Debug is redacted — the
code, refresh token, and client secret must never drift into a log line.
Fields§
§grant_type: String§code: Option<String>§refresh_token: Option<String>§redirect_uri: Option<String>§code_verifier: Option<String>§client_id: String§client_secret: Option<String>§scope: Option<String>Trait Implementations§
Source§impl Clone for TokenRequestForm
impl Clone for TokenRequestForm
Source§impl Debug for TokenRequestForm
impl Debug for TokenRequestForm
Source§impl Default for TokenRequestForm
impl Default for TokenRequestForm
Auto Trait Implementations§
impl Freeze for TokenRequestForm
impl RefUnwindSafe for TokenRequestForm
impl Send for TokenRequestForm
impl Sync for TokenRequestForm
impl Unpin for TokenRequestForm
impl UnsafeUnpin for TokenRequestForm
impl UnwindSafe for TokenRequestForm
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more