pub struct PermissionsClient { /* private fields */ }Implementations§
Source§impl PermissionsClient
impl PermissionsClient
pub async fn get_user_perms( &self, app_id: &str, user_name: &str, ) -> Result<RespNameArray, Error<GetUserPermsError>>
pub async fn grant_user_perms( &self, app_id: &str, user_name: &str, req_perms: ReqPerms, ) -> Result<RespBasic, Error<GrantUserPermsError>>
pub async fn revoke_user_perm( &self, app_id: &str, user_name: &str, permission: &str, ) -> Result<RespBasic, Error<RevokeUserPermError>>
pub async fn revoke_user_perms( &self, app_id: &str, user_name: &str, req_perms: ReqPerms, ) -> Result<RespBasic, Error<RevokeUserPermsError>>
Trait Implementations§
Source§impl Clone for PermissionsClient
impl Clone for PermissionsClient
Source§fn clone(&self) -> PermissionsClient
fn clone(&self) -> PermissionsClient
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PermissionsClient
impl !RefUnwindSafe for PermissionsClient
impl Send for PermissionsClient
impl Sync for PermissionsClient
impl Unpin for PermissionsClient
impl UnsafeUnpin for PermissionsClient
impl !UnwindSafe for PermissionsClient
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