pub struct PasswordClient<T> { /* private fields */ }Implementations§
Source§impl<T> PasswordClient<T>where
T: Client,
impl<T> PasswordClient<T>where
T: Client,
Source§impl<T> PasswordClient<T>where
T: Client,
impl<T> PasswordClient<T>where
T: Client,
Sourcepub async fn put(&self, params: PutParams) -> Result<(), T::Error>
pub async fn put(&self, params: PutParams) -> Result<(), T::Error>
Change user password.
Permission check: or(userid-param(“self”), and(userid-param(“Realm.AllocateUser”), userid-group([“User.Modify”]))) Each user is allowed to change their own password. A user can change the password of another user if they have ‘Realm.AllocateUser’ (on the realm of user <userid>) and ‘User.Modify’ permission on /access/groups/<group> on a group where user <userid> is member of. For the PAM realm, a password change does not take effect cluster-wide, but only applies to the local node.
Trait Implementations§
Source§impl<T: Clone> Clone for PasswordClient<T>
impl<T: Clone> Clone for PasswordClient<T>
Source§fn clone(&self) -> PasswordClient<T>
fn clone(&self) -> PasswordClient<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 PasswordClient<T>where
T: Freeze,
impl<T> RefUnwindSafe for PasswordClient<T>where
T: RefUnwindSafe,
impl<T> Send for PasswordClient<T>where
T: Send,
impl<T> Sync for PasswordClient<T>where
T: Sync,
impl<T> Unpin for PasswordClient<T>where
T: Unpin,
impl<T> UnsafeUnpin for PasswordClient<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for PasswordClient<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