pub struct AuthorizationUrlRequest {Show 18 fields
pub id: String,
pub options: ProviderOptions,
pub authorization_endpoint: String,
pub redirect_uri: String,
pub state: String,
pub code_verifier: Option<String>,
pub scopes: Vec<String>,
pub claims: Vec<String>,
pub duration: Option<String>,
pub prompt: Option<String>,
pub access_type: Option<String>,
pub response_type: Option<String>,
pub display: Option<String>,
pub login_hint: Option<String>,
pub hd: Option<String>,
pub response_mode: Option<String>,
pub additional_params: BTreeMap<String, String>,
pub scope_joiner: String,
}Fields§
§id: String§options: ProviderOptions§redirect_uri: String§state: String§code_verifier: Option<String>§scopes: Vec<String>§claims: Vec<String>§duration: Option<String>§prompt: Option<String>§access_type: Option<String>§response_type: Option<String>§display: Option<String>§login_hint: Option<String>§hd: Option<String>§response_mode: Option<String>§additional_params: BTreeMap<String, String>§scope_joiner: StringImplementations§
Source§impl AuthorizationUrlRequest
impl AuthorizationUrlRequest
pub fn try_new( id: impl Into<String>, options: ProviderOptions, authorization_endpoint: impl Into<String>, redirect_uri: impl Into<String>, state: impl Into<String>, ) -> Result<Self, OAuthError>
pub fn code_verifier(self, code_verifier: impl Into<String>) -> Self
pub fn scope(self, scope: impl Into<String>) -> Self
pub fn scopes(self, scopes: impl IntoIterator<Item = impl Into<String>>) -> Self
pub fn claim(self, claim: 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 query parameter. Security-critical keys
(state, redirect_uri, response_type, client_id, and PKCE
challenge fields) are ignored so they cannot override validated flow
invariants.
Trait Implementations§
Source§impl Clone for AuthorizationUrlRequest
impl Clone for AuthorizationUrlRequest
Source§fn clone(&self) -> AuthorizationUrlRequest
fn clone(&self) -> AuthorizationUrlRequest
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 AuthorizationUrlRequest
impl Debug for AuthorizationUrlRequest
Source§impl Default for AuthorizationUrlRequest
impl Default for AuthorizationUrlRequest
impl Eq for AuthorizationUrlRequest
Source§impl PartialEq for AuthorizationUrlRequest
impl PartialEq for AuthorizationUrlRequest
Source§fn eq(&self, other: &AuthorizationUrlRequest) -> bool
fn eq(&self, other: &AuthorizationUrlRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AuthorizationUrlRequest
Auto Trait Implementations§
impl Freeze for AuthorizationUrlRequest
impl RefUnwindSafe for AuthorizationUrlRequest
impl Send for AuthorizationUrlRequest
impl Sync for AuthorizationUrlRequest
impl Unpin for AuthorizationUrlRequest
impl UnsafeUnpin for AuthorizationUrlRequest
impl UnwindSafe for AuthorizationUrlRequest
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