pub struct ExchangeCode {
pub issuer: String,
pub client_id: String,
pub code: String,
pub redirect_uri: String,
pub code_verifier: Option<String>,
pub client_secret: Option<String>,
pub token_endpoint_auth_method: Option<String>,
}Expand description
Parameters for exchanging authorization code
Fields§
§issuer: StringIssuer URL
client_id: StringClient ID
code: StringAuthorization code
redirect_uri: StringRedirect URI (must match the one used in authorization)
code_verifier: Option<String>PKCE code verifier (optional for confidential clients)
client_secret: Option<String>Client secret (for confidential clients)
token_endpoint_auth_method: Option<String>Token endpoint authentication method from discovery metadata (e.g., “client_secret_basic”, “client_secret_post”, “none”)
Trait Implementations§
Source§impl Clone for ExchangeCode
impl Clone for ExchangeCode
Source§fn clone(&self) -> ExchangeCode
fn clone(&self) -> ExchangeCode
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 ExchangeCode
impl RefUnwindSafe for ExchangeCode
impl Send for ExchangeCode
impl Sync for ExchangeCode
impl Unpin for ExchangeCode
impl UnwindSafe for ExchangeCode
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