pub struct ProviderOptions {Show 13 fields
pub client_id: Option<ClientId>,
pub client_secret: Option<ClientSecret>,
pub scope: Vec<String>,
pub disable_default_scope: bool,
pub redirect_uri: Option<String>,
pub authorization_endpoint: Option<String>,
pub client_key: Option<String>,
pub disable_id_token_sign_in: bool,
pub disable_implicit_sign_up: bool,
pub disable_sign_up: bool,
pub prompt: Option<String>,
pub response_mode: Option<String>,
pub override_user_info_on_sign_in: bool,
}Fields§
§client_id: Option<ClientId>§client_secret: Option<ClientSecret>§scope: Vec<String>§disable_default_scope: bool§redirect_uri: Option<String>§client_key: Option<String>§disable_id_token_sign_in: bool§disable_implicit_sign_up: bool§disable_sign_up: bool§prompt: Option<String>§response_mode: Option<String>§override_user_info_on_sign_in: boolImplementations§
Source§impl ProviderOptions
impl ProviderOptions
pub fn client_secret_str(&self) -> Option<&str>
pub fn with_client_secret( self, secret: impl Into<String>, ) -> Result<Self, OAuthError>
Trait Implementations§
Source§impl Clone for ProviderOptions
impl Clone for ProviderOptions
Source§fn clone(&self) -> ProviderOptions
fn clone(&self) -> ProviderOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ProviderOptions
impl Debug for ProviderOptions
Source§impl Default for ProviderOptions
impl Default for ProviderOptions
Source§fn default() -> ProviderOptions
fn default() -> ProviderOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ProviderOptions
impl<'de> Deserialize<'de> for ProviderOptions
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
impl Eq for ProviderOptions
Source§impl PartialEq for ProviderOptions
impl PartialEq for ProviderOptions
Source§fn eq(&self, other: &ProviderOptions) -> bool
fn eq(&self, other: &ProviderOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ProviderOptions
impl Serialize for ProviderOptions
impl StructuralPartialEq for ProviderOptions
Auto Trait Implementations§
impl Freeze for ProviderOptions
impl RefUnwindSafe for ProviderOptions
impl Send for ProviderOptions
impl Sync for ProviderOptions
impl Unpin for ProviderOptions
impl UnsafeUnpin for ProviderOptions
impl UnwindSafe for ProviderOptions
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