pub struct PermissionsClient<T> { /* private fields */ }Implementations§
Source§impl<T> PermissionsClient<T>where
T: Client,
impl<T> PermissionsClient<T>where
T: Client,
Source§impl<T> PermissionsClient<T>where
T: Client,
impl<T> PermissionsClient<T>where
T: Client,
Sourcepub async fn get(&self, params: GetParams) -> Result<GetOutput, T::Error>
pub async fn get(&self, params: GetParams) -> Result<GetOutput, T::Error>
Retrieve effective permissions of given user/token.
Each user/token is allowed to dump their own permissions (or that of owned tokens). A user can dump the permissions of another user or their tokens if they have ‘Sys.Audit’ permission on /access.
Trait Implementations§
Source§impl<T: Clone> Clone for PermissionsClient<T>
impl<T: Clone> Clone for PermissionsClient<T>
Source§fn clone(&self) -> PermissionsClient<T>
fn clone(&self) -> PermissionsClient<T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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<T> Freeze for PermissionsClient<T>where
T: Freeze,
impl<T> RefUnwindSafe for PermissionsClient<T>where
T: RefUnwindSafe,
impl<T> Send for PermissionsClient<T>where
T: Send,
impl<T> Sync for PermissionsClient<T>where
T: Sync,
impl<T> Unpin for PermissionsClient<T>where
T: Unpin,
impl<T> UnsafeUnpin for PermissionsClient<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for PermissionsClient<T>where
T: UnwindSafe,
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