pub struct UsersClient { /* private fields */ }
Expand description
Users API 客户端
Implementations§
Source§impl UsersClient
impl UsersClient
Sourcepub async fn get_user_autocomplete_source(
&self,
source_type: Option<String>,
page: Option<i64>,
page_size: Option<i64>,
search: Option<String>,
access: Option<String>,
order_by: Option<String>,
desc: Option<bool>,
) -> Result<Value>
pub async fn get_user_autocomplete_source( &self, source_type: Option<String>, page: Option<i64>, page_size: Option<i64>, search: Option<String>, access: Option<String>, order_by: Option<String>, desc: Option<bool>, ) -> Result<Value>
查询当前用户用户拥有指定权限的所有资源列表。List resources that the current user has specified permissions for.
Sourcepub async fn get_user(&self) -> Result<Value>
pub async fn get_user(&self) -> Result<Value>
获取指定用户的详情信息。Get detailed information for a specified user.
Sourcepub async fn post_user(&self, request_data: Value) -> Result<Value>
pub async fn post_user(&self, request_data: Value) -> Result<Value>
更新指定用户的详情信息。Updates the specified user's profile information.
Sourcepub async fn get_users_username(&self, username: String) -> Result<Value>
pub async fn get_users_username(&self, username: String) -> Result<Value>
获取指定用户的详情信息。Get detailed information for a specified user.
Auto Trait Implementations§
impl Freeze for UsersClient
impl !RefUnwindSafe for UsersClient
impl Send for UsersClient
impl Sync for UsersClient
impl Unpin for UsersClient
impl !UnwindSafe for UsersClient
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