pub struct AccountLinkingOptions {
pub enabled: bool,
pub disable_implicit_linking: bool,
pub trusted_providers: Vec<String>,
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>§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 builder() -> 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 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
Source§impl PartialEq for AccountLinkingOptions
impl PartialEq for AccountLinkingOptions
Source§fn eq(&self, other: &AccountLinkingOptions) -> bool
fn eq(&self, other: &AccountLinkingOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for AccountLinkingOptions
impl StructuralPartialEq for AccountLinkingOptions
Auto Trait Implementations§
impl Freeze for AccountLinkingOptions
impl RefUnwindSafe for AccountLinkingOptions
impl Send for AccountLinkingOptions
impl Sync for AccountLinkingOptions
impl Unpin for AccountLinkingOptions
impl UnsafeUnpin for AccountLinkingOptions
impl UnwindSafe 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
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.