pub struct AuthorizationRequest<'a> {
pub oauth: &'a OAuth,
pub pkce: Option<&'a PkceChallenge>,
pub state: &'a str,
}Expand description
Parameters for constructing an authorization URL.
Separating these from the OAuth config allows the caller to control
the state parameter and whether PKCE parameters are included.
Fields§
§oauth: &'a OAuthThe OAuth configuration from the config file.
pkce: Option<&'a PkceChallenge>The PKCE challenge (included only when PKCE is enabled).
state: &'a strAn opaque state value for CSRF protection.
Auto Trait Implementations§
impl<'a> Freeze for AuthorizationRequest<'a>
impl<'a> RefUnwindSafe for AuthorizationRequest<'a>
impl<'a> Send for AuthorizationRequest<'a>
impl<'a> Sync for AuthorizationRequest<'a>
impl<'a> Unpin for AuthorizationRequest<'a>
impl<'a> UnsafeUnpin for AuthorizationRequest<'a>
impl<'a> UnwindSafe for AuthorizationRequest<'a>
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