pub struct OAuthAuthorizationRequest {
pub authorize_url: String,
pub client_id: String,
pub redirect_uri: String,
pub scopes: Vec<String>,
pub state: String,
pub code_challenge: String,
pub code_challenge_method: PkceChallengeMethod,
pub extra_params: BTreeMap<String, String>,
}Fields§
§client_id: String§redirect_uri: String§scopes: Vec<String>§state: String§code_challenge: String§code_challenge_method: PkceChallengeMethod§extra_params: BTreeMap<String, String>Implementations§
Source§impl OAuthAuthorizationRequest
impl OAuthAuthorizationRequest
pub fn from_config( config: &OAuthConfig, redirect_uri: impl Into<String>, state: impl Into<String>, pkce: &PkceCodePair, ) -> Self
pub fn with_extra_param( self, key: impl Into<String>, value: impl Into<String>, ) -> Self
pub fn build_url(&self) -> String
Trait Implementations§
Source§impl Clone for OAuthAuthorizationRequest
impl Clone for OAuthAuthorizationRequest
Source§fn clone(&self) -> OAuthAuthorizationRequest
fn clone(&self) -> OAuthAuthorizationRequest
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 moreSource§impl Debug for OAuthAuthorizationRequest
impl Debug for OAuthAuthorizationRequest
impl Eq for OAuthAuthorizationRequest
impl StructuralPartialEq for OAuthAuthorizationRequest
Auto Trait Implementations§
impl Freeze for OAuthAuthorizationRequest
impl RefUnwindSafe for OAuthAuthorizationRequest
impl Send for OAuthAuthorizationRequest
impl Sync for OAuthAuthorizationRequest
impl Unpin for OAuthAuthorizationRequest
impl UnsafeUnpin for OAuthAuthorizationRequest
impl UnwindSafe for OAuthAuthorizationRequest
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