pub struct AuthorizationCodeOAuthFlow {
pub authorization_url: String,
pub token_url: String,
pub refresh_url: Option<String>,
pub scopes: HashMap<String, String>,
}
Expand description
Configuration for OAuth 2.0 authorization code flow.
The authorization code flow is the most secure OAuth flow, involving a two-step process where the user is redirected to authorize the application, and then an authorization code is exchanged for an access token.
Fields§
§token_url: String
§refresh_url: Option<String>
§scopes: HashMap<String, String>
Trait Implementations§
Source§impl Clone for AuthorizationCodeOAuthFlow
impl Clone for AuthorizationCodeOAuthFlow
Source§fn clone(&self) -> AuthorizationCodeOAuthFlow
fn clone(&self) -> AuthorizationCodeOAuthFlow
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 AuthorizationCodeOAuthFlow
impl Debug for AuthorizationCodeOAuthFlow
Source§impl<'de> Deserialize<'de> for AuthorizationCodeOAuthFlow
impl<'de> Deserialize<'de> for AuthorizationCodeOAuthFlow
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AuthorizationCodeOAuthFlow
impl RefUnwindSafe for AuthorizationCodeOAuthFlow
impl Send for AuthorizationCodeOAuthFlow
impl Sync for AuthorizationCodeOAuthFlow
impl Unpin for AuthorizationCodeOAuthFlow
impl UnwindSafe for AuthorizationCodeOAuthFlow
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