pub struct FileUserIdentityStore { /* private fields */ }Expand description
JSON-file-backed identity store. Writes are atomic and survive process restarts. Like ConversationStore, concurrent writers in multiple processes are not supported.
Implementations§
Trait Implementations§
Source§impl UserIdentityStore for FileUserIdentityStore
impl UserIdentityStore for FileUserIdentityStore
fn resolve_or_create( &self, provider: &str, subject: &str, display_name: Option<&str>, ) -> Result<(User, UserIdentity), IdentityStoreError>
fn create_user( &self, display_name: &str, birthday: Option<NaiveDate>, ) -> Result<User, IdentityStoreError>
fn update_profile( &self, user_id: UserId, display_name: &str, birthday: Option<NaiveDate>, ) -> Result<User, IdentityStoreError>
fn get_user(&self, user_id: UserId) -> Result<Option<User>, IdentityStoreError>
fn update_display_name( &self, user_id: UserId, display_name: &str, ) -> Result<User, IdentityStoreError>
fn update_timezone( &self, user_id: UserId, timezone: Option<&str>, ) -> Result<User, IdentityStoreError>
fn find_identity( &self, provider: &str, subject: &str, ) -> Result<Option<UserIdentity>, IdentityStoreError>
Source§fn find_identity_for_user(
&self,
provider: &str,
user_id: UserId,
) -> Result<Option<UserIdentity>, IdentityStoreError>
fn find_identity_for_user( &self, provider: &str, user_id: UserId, ) -> Result<Option<UserIdentity>, IdentityStoreError>
Finds an external identity linked to an internal user for a provider.
fn link_identity( &self, user_id: UserId, provider: &str, subject: &str, ) -> Result<UserIdentity, IdentityStoreError>
Auto Trait Implementations§
impl !Freeze for FileUserIdentityStore
impl RefUnwindSafe for FileUserIdentityStore
impl Send for FileUserIdentityStore
impl Sync for FileUserIdentityStore
impl Unpin for FileUserIdentityStore
impl UnsafeUnpin for FileUserIdentityStore
impl UnwindSafe for FileUserIdentityStore
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