pub struct AuthorizationRequest {
pub response_type: String,
pub client_id: String,
pub redirect_uri: String,
pub scopes: Vec<String>,
pub state: Option<String>,
pub code_challenge: String,
pub code_challenge_method: CodeChallengeMethod,
}Expand description
Authorization request parameters.
Fields§
§response_type: StringResponse type (must be “code” for authorization code flow).
client_id: StringClient ID.
redirect_uri: StringRedirect URI.
scopes: Vec<String>Requested scopes (space-separated in original request).
state: Option<String>State parameter (recommended for CSRF protection).
code_challenge: StringPKCE code challenge.
code_challenge_method: CodeChallengeMethodPKCE code challenge method.
Trait Implementations§
Source§impl Clone for AuthorizationRequest
impl Clone for AuthorizationRequest
Source§fn clone(&self) -> AuthorizationRequest
fn clone(&self) -> AuthorizationRequest
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for AuthorizationRequest
impl RefUnwindSafe for AuthorizationRequest
impl Send for AuthorizationRequest
impl Sync for AuthorizationRequest
impl Unpin for AuthorizationRequest
impl UnwindSafe for AuthorizationRequest
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).