pub struct UsersApi { /* private fields */ }Expand description
用户管理 API
Implementations§
Source§impl UsersApi
impl UsersApi
Sourcepub fn new(config: Arc<PlatformConfig>) -> Self
pub fn new(config: Arc<PlatformConfig>) -> Self
创建新的用户管理 facade。
Sourcepub fn list(&self) -> ListAdminUsersRequest
pub fn list(&self) -> ListAdminUsersRequest
获取用户列表
Sourcepub fn disable(&self) -> DisableUserRequest
pub fn disable(&self) -> DisableUserRequest
禁用用户
Sourcepub fn enable(&self) -> EnableUserRequest
pub fn enable(&self) -> EnableUserRequest
启用用户
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for UsersApi
impl !UnwindSafe for UsersApi
impl Freeze for UsersApi
impl Send for UsersApi
impl Sync for UsersApi
impl Unpin for UsersApi
impl UnsafeUnpin for UsersApi
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