pub struct K1Users { /* private fields */ }Implementations§
Source§impl K1Users
impl K1Users
pub fn new(accounts: Arc<K1Accounts>, persons: Arc<K1Persons>) -> Self
pub fn register(&self, code: &InviteCode, user: NewUser) -> Result<User, String>
pub fn get(&self, user_id: UserId) -> Result<Option<User>, String>
pub fn find_by_username(&self, username: &str) -> Result<Option<User>, String>
Auto Trait Implementations§
impl !Freeze for K1Users
impl RefUnwindSafe for K1Users
impl Send for K1Users
impl Sync for K1Users
impl Unpin for K1Users
impl UnsafeUnpin for K1Users
impl UnwindSafe for K1Users
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