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>
impl<'a, SCOPE> Clone for AuthorizationEndpoint<'a, SCOPE>
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 moreSource§impl<'a, SCOPE> Endpoint for AuthorizationEndpoint<'a, SCOPE>
impl<'a, SCOPE> Endpoint for AuthorizationEndpoint<'a, SCOPE>
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> Freeze for AuthorizationEndpoint<'a, SCOPE>
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§
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