pub struct SetUserPassword(/* private fields */);Expand description
POST /admin/set-user-password: needs user:set-password. Checks the password policy,
creates the credential account when the user has none, and emits PasswordChanged.
Trait Implementations§
Source§impl<D: Adapter> Endpoint<D> for SetUserPassword
impl<D: Adapter> Endpoint<D> for SetUserPassword
const METHOD: Method = Method::POST
const PATH: &'static str = "/admin/set-user-password"
type Access = MaybeAuthenticated
type Input = SetUserPasswordInput
type Output = Status
async fn call( &self, ctx: Ctx<D, MaybeAuthenticated>, input: SetUserPasswordInput, ) -> Result<Status, AuthError>
Auto Trait Implementations§
impl Forget for SetUserPassword
impl Freeze for SetUserPassword
impl Move for SetUserPassword
impl RefUnwindSafe for SetUserPassword
impl Send for SetUserPassword
impl Sync for SetUserPassword
impl Unpin for SetUserPassword
impl UnsafeUnpin for SetUserPassword
impl UnwindSafe for SetUserPassword
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