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
sourceimpl<'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) -> Self where
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
sourceimpl<'a, SCOPE: Clone> Clone for AuthorizationEndpoint<'a, SCOPE> where
SCOPE: Scope,
impl<'a, SCOPE: Clone> Clone for AuthorizationEndpoint<'a, SCOPE> where
SCOPE: Scope,
sourcefn clone(&self) -> AuthorizationEndpoint<'a, SCOPE>
fn clone(&self) -> AuthorizationEndpoint<'a, SCOPE>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'a, SCOPE> Endpoint for AuthorizationEndpoint<'a, SCOPE> where
SCOPE: Scope + Serialize,
impl<'a, SCOPE> Endpoint for AuthorizationEndpoint<'a, SCOPE> where
SCOPE: Scope + Serialize,
type RenderRequestError = AuthorizationEndpointError
type ParseResponseOutput = ()
type ParseResponseError = Infallible
fn render_request(&self) -> Result<Request<Body>, Self::RenderRequestError>
fn parse_response(
&self,
_response: Response<Body>
) -> Result<Self::ParseResponseOutput, Self::ParseResponseError>
Auto Trait Implementations
impl<'a, SCOPE> !RefUnwindSafe for AuthorizationEndpoint<'a, SCOPE>
impl<'a, SCOPE> !Send for AuthorizationEndpoint<'a, SCOPE>
impl<'a, SCOPE> !Sync for AuthorizationEndpoint<'a, SCOPE>
impl<'a, SCOPE> Unpin for AuthorizationEndpoint<'a, SCOPE> where
SCOPE: Unpin,
impl<'a, SCOPE> !UnwindSafe for AuthorizationEndpoint<'a, SCOPE>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more