pub struct OAuth2Config {
pub provider: String,
pub client_id: String,
pub client_secret: String,
pub auth_url: String,
pub token_url: String,
pub user_info_url: String,
pub scopes: Vec<String>,
}Expand description
OAuth2 configuration
Fields§
§provider: String§client_id: String§client_secret: String§auth_url: String§token_url: String§user_info_url: String§scopes: Vec<String>Implementations§
Source§impl OAuth2Config
impl OAuth2Config
Sourcepub fn new(
provider: impl Into<String>,
client_id: impl Into<String>,
client_secret: impl Into<String>,
auth_url: impl Into<String>,
token_url: impl Into<String>,
user_info_url: impl Into<String>,
) -> Self
pub fn new( provider: impl Into<String>, client_id: impl Into<String>, client_secret: impl Into<String>, auth_url: impl Into<String>, token_url: impl Into<String>, user_info_url: impl Into<String>, ) -> Self
Create a new OAuth2 configuration
Trait Implementations§
Source§impl Clone for OAuth2Config
impl Clone for OAuth2Config
Source§fn clone(&self) -> OAuth2Config
fn clone(&self) -> OAuth2Config
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 OAuth2Config
impl Debug for OAuth2Config
Source§impl<'de> Deserialize<'de> for OAuth2Config
impl<'de> Deserialize<'de> for OAuth2Config
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 OAuth2Config
impl RefUnwindSafe for OAuth2Config
impl Send for OAuth2Config
impl Sync for OAuth2Config
impl Unpin for OAuth2Config
impl UnwindSafe for OAuth2Config
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