pub struct AccountStore { /* private fields */ }Expand description
Account store. Wraps an AccountBackend and provides the methods the
OAuth callback / API endpoints actually call.
Implementations§
Source§impl AccountStore
impl AccountStore
pub fn new() -> Self
pub fn with_backend(backend: Box<dyn AccountBackend>) -> Self
pub fn upsert(&self, account: &Account)
pub fn find_by_provider( &self, provider_id: &str, account_id: &str, ) -> Option<Account>
pub fn find_for_user(&self, user_id: &str) -> Vec<Account>
pub fn unlink(&self, provider_id: &str, account_id: &str) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AccountStore
impl !RefUnwindSafe for AccountStore
impl Send for AccountStore
impl Sync for AccountStore
impl Unpin for AccountStore
impl UnsafeUnpin for AccountStore
impl !UnwindSafe for AccountStore
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