pub struct UsersClient<T> { /* private fields */ }Implementations§
Source§impl<T> UsersClient<T>where
T: Client,
impl<T> UsersClient<T>where
T: Client,
Sourcepub async fn get(
&self,
params: GetParams,
) -> Result<Vec<GetOutputItems>, T::Error>
pub async fn get( &self, params: GetParams, ) -> Result<Vec<GetOutputItems>, T::Error>
User index.
The returned list is restricted to users where you have ‘User.Modify’ or ‘Sys.Audit’ permissions on ‘/access/groups’ or on a group the user belongs too. But it always includes the current (authenticated) user.
Source§impl<T> UsersClient<T>where
T: Client,
impl<T> UsersClient<T>where
T: Client,
Sourcepub async fn post(&self, params: PostParams) -> Result<(), T::Error>
pub async fn post(&self, params: PostParams) -> Result<(), T::Error>
Create new user.
Permission check: and(userid-param(“Realm.AllocateUser”), userid-group([“User.Modify”], groups_param=“create”)) You need ‘Realm.AllocateUser’ on ‘/access/realm/<realm>’ on the realm of user <userid>, and ‘User.Modify’ permissions to ‘/access/groups/<group>’ for any group specified (or ‘User.Modify’ on ‘/access/groups’ if you pass no groups.
Source§impl<T> UsersClient<T>where
T: Client,
impl<T> UsersClient<T>where
T: Client,
pub fn userid(&self, userid: &str) -> UseridClient<T>
Trait Implementations§
Source§impl<T: Clone> Clone for UsersClient<T>
impl<T: Clone> Clone for UsersClient<T>
Source§fn clone(&self) -> UsersClient<T>
fn clone(&self) -> UsersClient<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 UsersClient<T>where
T: Freeze,
impl<T> RefUnwindSafe for UsersClient<T>where
T: RefUnwindSafe,
impl<T> Send for UsersClient<T>where
T: Send,
impl<T> Sync for UsersClient<T>where
T: Sync,
impl<T> Unpin for UsersClient<T>where
T: Unpin,
impl<T> UnsafeUnpin for UsersClient<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for UsersClient<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