pub struct AccountOptions {
pub update_account_on_sign_in: bool,
pub encrypt_oauth_tokens: bool,
pub store_account_cookie: bool,
pub store_state_strategy: OAuthStateStoreStrategy,
pub account_linking: AccountLinkingOptions,
}Expand description
Account and OAuth account behavior.
Fields§
§update_account_on_sign_in: bool§encrypt_oauth_tokens: bool§store_state_strategy: OAuthStateStoreStrategy§account_linking: AccountLinkingOptionsImplementations§
Source§impl AccountOptions
impl AccountOptions
pub fn new() -> Self
pub fn builder() -> Self
pub fn update_account_on_sign_in(self, enabled: bool) -> Self
pub fn encrypt_oauth_tokens(self, enabled: bool) -> Self
pub fn store_state_strategy(self, strategy: OAuthStateStoreStrategy) -> Self
pub fn account_linking(self, account_linking: AccountLinkingOptions) -> Self
Trait Implementations§
Source§impl Clone for AccountOptions
impl Clone for AccountOptions
Source§fn clone(&self) -> AccountOptions
fn clone(&self) -> AccountOptions
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 AccountOptions
impl Debug for AccountOptions
Source§impl Default for AccountOptions
impl Default for AccountOptions
Source§impl PartialEq for AccountOptions
impl PartialEq for AccountOptions
Source§fn eq(&self, other: &AccountOptions) -> bool
fn eq(&self, other: &AccountOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for AccountOptions
impl StructuralPartialEq for AccountOptions
Auto Trait Implementations§
impl Freeze for AccountOptions
impl RefUnwindSafe for AccountOptions
impl Send for AccountOptions
impl Sync for AccountOptions
impl Unpin for AccountOptions
impl UnsafeUnpin for AccountOptions
impl UnwindSafe for AccountOptions
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.