pub struct InMemoryIdentityService { /* private fields */ }Implementations§
Source§impl InMemoryIdentityService
impl InMemoryIdentityService
pub fn new() -> Self
pub fn insert_user( &self, user_id: impl Into<String>, email: impl Into<String>, password: impl Into<String>, display_name: Option<&str>, roles: Vec<String>, attributes: BTreeMap<String, String>, ) -> AppServiceResult<()>
pub fn with_session_ttl_ms(self, ttl_ms: u64) -> Self
Trait Implementations§
Source§impl Default for InMemoryIdentityService
impl Default for InMemoryIdentityService
Source§impl IdentityService for InMemoryIdentityService
impl IdentityService for InMemoryIdentityService
fn sign_in(&self, credentials: AuthCredentials) -> AppServiceResult<AuthSession>
fn session_identity( &self, token: &str, ) -> AppServiceResult<Option<AuthIdentity>>
fn sign_out(&self, token: &str) -> AppServiceResult<()>
Auto Trait Implementations§
impl !Freeze for InMemoryIdentityService
impl RefUnwindSafe for InMemoryIdentityService
impl Send for InMemoryIdentityService
impl Sync for InMemoryIdentityService
impl Unpin for InMemoryIdentityService
impl UnsafeUnpin for InMemoryIdentityService
impl UnwindSafe for InMemoryIdentityService
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