pub struct ExchangeRequest {
pub token_endpoint: String,
pub code: SensitiveString,
pub redirect_uri: String,
pub client_id: String,
pub client_secret: Option<SensitiveString>,
pub code_verifier: SensitiveString,
pub install_id: String,
}Expand description
Trades an authorization code for tokens. The code and the client secret are the two
halves worth stealing, so both print as [REDACTED].
Fields§
§token_endpoint: StringWhere the code is traded: ServerMetadata::token_endpoint.
code: SensitiveStringThe authorization code the redirect carried back.
redirect_uri: StringThe redirect URI the authorization request named; the server checks they match.
client_id: StringThe client the code was issued to.
client_secret: Option<SensitiveString>The client’s secret, for a client that was issued one.
code_verifier: SensitiveStringThe verifier generate_pkce drew, which redeems the code and so is a secret of the
same weight.
install_id: StringThe same installation identifier the authorization URL carried. HEY refuses the exchange without it.
Trait Implementations§
Source§impl Clone for ExchangeRequest
impl Clone for ExchangeRequest
Source§fn clone(&self) -> ExchangeRequest
fn clone(&self) -> ExchangeRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExchangeRequest
impl Debug for ExchangeRequest
Source§impl Default for ExchangeRequest
impl Default for ExchangeRequest
Source§fn default() -> ExchangeRequest
fn default() -> ExchangeRequest
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ExchangeRequest
impl RefUnwindSafe for ExchangeRequest
impl Send for ExchangeRequest
impl Sync for ExchangeRequest
impl Unpin for ExchangeRequest
impl UnsafeUnpin for ExchangeRequest
impl UnwindSafe for ExchangeRequest
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