pub struct BanUser(/* private fields */);Expand description
POST /admin/ban-user: needs user:ban. Revokes every session of the user.
Trait Implementations§
Source§impl<D: Adapter> Endpoint<D> for BanUser
impl<D: Adapter> Endpoint<D> for BanUser
const METHOD: Method = Method::POST
const PATH: &'static str = "/admin/ban-user"
type Access = MaybeAuthenticated
type Input = BanUserInput
type Output = UserOutput
async fn call( &self, ctx: Ctx<D, MaybeAuthenticated>, input: BanUserInput, ) -> Result<UserOutput, AuthError>
Auto Trait Implementations§
impl Forget for BanUser
impl Freeze for BanUser
impl Move for BanUser
impl RefUnwindSafe for BanUser
impl Send for BanUser
impl Sync for BanUser
impl Unpin for BanUser
impl UnsafeUnpin for BanUser
impl UnwindSafe for BanUser
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