pub struct UsersService { /* private fields */ }Expand description
用户管理服务
Implementations§
Source§impl UsersService
impl UsersService
Sourcepub fn new(config: Arc<SecurityConfig>) -> Self
pub fn new(config: Arc<SecurityConfig>) -> Self
创建新的用户管理服务实例
Sourcepub fn get(&self) -> GetUserBuilder
pub fn get(&self) -> GetUserBuilder
获取单个用户信息
Sourcepub fn list(&self) -> ListUsersBuilder
pub fn list(&self) -> ListUsersBuilder
获取用户列表
Sourcepub fn patch(&self) -> PatchUserBuilder
pub fn patch(&self) -> PatchUserBuilder
修改用户部分信息
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UsersService
impl RefUnwindSafe for UsersService
impl Send for UsersService
impl Sync for UsersService
impl Unpin for UsersService
impl UnsafeUnpin for UsersService
impl UnwindSafe for UsersService
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