pub struct OAuthClientConfig {
pub provider: String,
pub client_id: ClientId,
pub client_secret: Option<String>,
pub authorization_url: String,
pub token_url: String,
pub redirect_uri: Option<String>,
pub scopes: Vec<String>,
}Fields§
§provider: String§client_id: ClientId§client_secret: Option<String>§token_url: String§redirect_uri: Option<String>§scopes: Vec<String>Implementations§
Source§impl OAuthClientConfig
impl OAuthClientConfig
pub fn new( provider: impl Into<String>, client_id: ClientId, authorization_url: impl Into<String>, token_url: impl Into<String>, ) -> Self
pub fn with_secret(self, secret: impl Into<String>) -> Self
pub fn with_redirect_uri(self, redirect_uri: impl Into<String>) -> Self
pub fn with_scopes(self, scopes: Vec<String>) -> Self
Trait Implementations§
Source§impl Clone for OAuthClientConfig
impl Clone for OAuthClientConfig
Source§fn clone(&self) -> OAuthClientConfig
fn clone(&self) -> OAuthClientConfig
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 OAuthClientConfig
impl Debug for OAuthClientConfig
Source§impl<'de> Deserialize<'de> for OAuthClientConfig
impl<'de> Deserialize<'de> for OAuthClientConfig
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 OAuthClientConfig
impl RefUnwindSafe for OAuthClientConfig
impl Send for OAuthClientConfig
impl Sync for OAuthClientConfig
impl Unpin for OAuthClientConfig
impl UnwindSafe for OAuthClientConfig
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