pub struct AuthorizationRequest {
pub redirect_uri: String,
pub scopes: Vec<String>,
pub state: Option<String>,
pub code_challenge: Option<String>,
pub code_challenge_method: Option<String>,
pub extra_params: Vec<(String, String)>,
}Expand description
OAuth2 授权请求配置
Fields§
§redirect_uri: String重定向 URI
scopes: Vec<String>授权范围
state: Option<String>状态参数
code_challenge: Option<String>PKCE code challenge
code_challenge_method: Option<String>PKCE code challenge method
extra_params: Vec<(String, String)>额外参数
Implementations§
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 UnsafeUnpin 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