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<AuthorizationCodeRequest, OAuthError>
pub fn code_verifier( self, code_verifier: impl Into<String>, ) -> AuthorizationCodeRequest
pub fn authentication( self, authentication: ClientAuthentication, ) -> AuthorizationCodeRequest
pub fn header( self, key: impl Into<String>, value: impl Into<String>, ) -> AuthorizationCodeRequest
pub fn additional_param( self, key: impl Into<String>, value: impl Into<String>, ) -> AuthorizationCodeRequest
pub fn override_param( self, key: impl Into<String>, value: impl Into<String>, ) -> AuthorizationCodeRequest
pub fn resource(self, resource: impl Into<String>) -> AuthorizationCodeRequest
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
Source§fn default() -> AuthorizationCodeRequest
fn default() -> AuthorizationCodeRequest
Returns the “default value” for a type. Read more
impl Eq for AuthorizationCodeRequest
Source§impl PartialEq for AuthorizationCodeRequest
impl PartialEq for AuthorizationCodeRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.