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