pub struct AuthorizationCodeRequest {
pub code: String,
pub redirect_uri: String,
pub options: ProviderOptions,
pub code_verifier: Option<String>,
pub device_id: Option<String>,
pub authentication: ClientAuthentication,
pub headers: BTreeMap<String, String>,
pub additional_params: BTreeMap<String, String>,
pub override_params: BTreeMap<String, String>,
pub resource: Vec<String>,
}Fields§
§code: String§redirect_uri: String§options: ProviderOptions§code_verifier: Option<String>§device_id: Option<String>§authentication: ClientAuthentication§headers: BTreeMap<String, String>§additional_params: BTreeMap<String, String>§override_params: BTreeMap<String, String>§resource: Vec<String>Implementations§
Source§impl AuthorizationCodeRequest
impl AuthorizationCodeRequest
pub fn try_new( code: impl Into<String>, redirect_uri: impl Into<String>, options: ProviderOptions, ) -> Result<Self, OAuthError>
pub fn code_verifier(self, code_verifier: impl Into<String>) -> Self
pub fn authentication(self, authentication: ClientAuthentication) -> Self
pub fn header(self, key: impl Into<String>, value: impl Into<String>) -> Self
Sourcepub fn additional_param(
self,
key: impl Into<String>,
value: impl Into<String>,
) -> Self
pub fn additional_param( self, key: impl Into<String>, value: impl Into<String>, ) -> Self
Adds a non-sensitive extension form field if not already set.
Security-critical keys (state, redirect_uri, PKCE, grant_type,
code, and client credential fields) are ignored.
Sourcepub fn override_param(
self,
key: impl Into<String>,
value: impl Into<String>,
) -> Self
pub fn override_param( self, key: impl Into<String>, value: impl Into<String>, ) -> Self
Overrides a non-sensitive form field. Security-critical keys (state,
redirect_uri, PKCE, grant_type, code, and client credential
fields) are ignored so validated flow invariants and client credentials
cannot be replaced after authentication is applied.
pub fn resource(self, resource: impl Into<String>) -> Self
Trait Implementations§
Source§impl Clone for AuthorizationCodeRequest
impl Clone for AuthorizationCodeRequest
Source§fn clone(&self) -> AuthorizationCodeRequest
fn clone(&self) -> AuthorizationCodeRequest
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 AuthorizationCodeRequest
impl Debug for AuthorizationCodeRequest
Source§impl Default for AuthorizationCodeRequest
impl Default for AuthorizationCodeRequest
impl Eq for AuthorizationCodeRequest
Source§impl PartialEq for AuthorizationCodeRequest
impl PartialEq for AuthorizationCodeRequest
Source§fn eq(&self, other: &AuthorizationCodeRequest) -> bool
fn eq(&self, other: &AuthorizationCodeRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AuthorizationCodeRequest
Auto Trait Implementations§
impl Freeze for AuthorizationCodeRequest
impl RefUnwindSafe for AuthorizationCodeRequest
impl Send for AuthorizationCodeRequest
impl Sync for AuthorizationCodeRequest
impl Unpin for AuthorizationCodeRequest
impl UnsafeUnpin for AuthorizationCodeRequest
impl UnwindSafe for AuthorizationCodeRequest
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