pub struct RemoveUser(/* private fields */);Expand description
POST /admin/remove-user: needs user:delete. Deletes the user’s sessions and
accounts, then the user, and emits SessionRevoked (when they had sessions) and
UserDeleted.
Trait Implementations§
Source§impl<D: Adapter> Endpoint<D> for RemoveUser
impl<D: Adapter> Endpoint<D> for RemoveUser
const METHOD: Method = Method::POST
const PATH: &'static str = "/admin/remove-user"
type Access = MaybeAuthenticated
type Input = UserIdInput
type Output = Success
async fn call( &self, ctx: Ctx<D, MaybeAuthenticated>, input: UserIdInput, ) -> Result<Success, AuthError>
Auto Trait Implementations§
impl Forget for RemoveUser
impl Freeze for RemoveUser
impl Move for RemoveUser
impl RefUnwindSafe for RemoveUser
impl Send for RemoveUser
impl Sync for RemoveUser
impl Unpin for RemoveUser
impl UnsafeUnpin for RemoveUser
impl UnwindSafe for RemoveUser
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