Struct oauth2_client::authorization_code_grant::authorization_endpoint::AuthorizationEndpoint
source · pub struct AuthorizationEndpoint<'a, SCOPE>where
SCOPE: Scope,{
pub state: Option<State>,
pub code_challenge: Option<(CodeChallenge, CodeChallengeMethod)>,
pub nonce: Option<Nonce>,
/* private fields */
}
Fields§
§state: Option<State>
§code_challenge: Option<(CodeChallenge, CodeChallengeMethod)>
§nonce: Option<Nonce>
Implementations§
source§impl<'a, SCOPE> AuthorizationEndpoint<'a, SCOPE>where
SCOPE: Scope,
impl<'a, SCOPE> AuthorizationEndpoint<'a, SCOPE>where
SCOPE: Scope,
pub fn new(
provider: &'a dyn ProviderExtAuthorizationCodeGrant<Scope = SCOPE>,
scopes: impl Into<Option<Vec<SCOPE>>>
) -> Self
pub fn configure<F>(self, f: F) -> Selfwhere
F: FnMut(&mut Self),
pub fn set_state(&mut self, state: State)
pub fn set_code_challenge(
&mut self,
code_challenge: CodeChallenge,
code_challenge_method: CodeChallengeMethod
)
pub fn set_nonce(&mut self, nonce: Nonce)
Trait Implementations§
source§impl<'a, SCOPE> Clone for AuthorizationEndpoint<'a, SCOPE>where
SCOPE: Scope + Clone,
impl<'a, SCOPE> Clone for AuthorizationEndpoint<'a, SCOPE>where
SCOPE: Scope + Clone,
source§fn clone(&self) -> AuthorizationEndpoint<'a, SCOPE>
fn clone(&self) -> AuthorizationEndpoint<'a, SCOPE>
Returns a copy 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 more