pub struct AccountLinkingOptions {
pub enabled: bool,
pub disable_implicit_linking: bool,
pub trusted_providers: Vec<String>,
pub trusted_providers_provider: Option<Arc<dyn TrustedProvidersProvider>>,
pub trusted_providers_request_provider: Option<Arc<dyn TrustedProvidersRequestProvider>>,
pub allow_different_emails: bool,
pub allow_unlinking_all: bool,
pub update_user_info_on_link: bool,
}Fields§
§enabled: bool§disable_implicit_linking: bool§trusted_providers: Vec<String>§trusted_providers_provider: Option<Arc<dyn TrustedProvidersProvider>>§trusted_providers_request_provider: Option<Arc<dyn TrustedProvidersRequestProvider>>§allow_different_emails: bool§allow_unlinking_all: bool§update_user_info_on_link: boolImplementations§
Source§impl AccountLinkingOptions
impl AccountLinkingOptions
pub fn new() -> Self
pub fn enabled(self, enabled: bool) -> Self
pub fn disable_implicit_linking(self, enabled: bool) -> Self
pub fn trusted_provider(self, provider: impl Into<String>) -> Self
pub fn trusted_providers<I, S>(self, providers: I) -> Self
pub fn trusted_providers_provider<P>(self, provider: P) -> Selfwhere
P: TrustedProvidersProvider,
pub fn trusted_providers_for_request_provider<P>(self, provider: P) -> Selfwhere
P: TrustedProvidersRequestProvider,
pub fn allow_different_emails(self, enabled: bool) -> Self
pub fn allow_unlinking_all(self, enabled: bool) -> Self
pub fn update_user_info_on_link(self, enabled: bool) -> Self
Trait Implementations§
Source§impl Clone for AccountLinkingOptions
impl Clone for AccountLinkingOptions
Source§fn clone(&self) -> AccountLinkingOptions
fn clone(&self) -> AccountLinkingOptions
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 AccountLinkingOptions
impl Debug for AccountLinkingOptions
Source§impl Default for AccountLinkingOptions
impl Default for AccountLinkingOptions
impl Eq for AccountLinkingOptions
Source§impl PartialEq for AccountLinkingOptions
impl PartialEq for AccountLinkingOptions
Auto Trait Implementations§
impl !RefUnwindSafe for AccountLinkingOptions
impl !UnwindSafe for AccountLinkingOptions
impl Freeze for AccountLinkingOptions
impl Send for AccountLinkingOptions
impl Sync for AccountLinkingOptions
impl Unpin for AccountLinkingOptions
impl UnsafeUnpin for AccountLinkingOptions
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.