pub struct RevokeUserSession(/* private fields */);Expand description
POST /admin/revoke-user-session: needs session:revoke. Succeeds when no session
with that token is left, even if there never was one.
Trait Implementations§
Source§impl<D: Adapter> Endpoint<D> for RevokeUserSession
impl<D: Adapter> Endpoint<D> for RevokeUserSession
const METHOD: Method = Method::POST
const PATH: &'static str = "/admin/revoke-user-session"
type Access = MaybeAuthenticated
type Input = RevokeUserSessionInput
type Output = Success
async fn call( &self, ctx: Ctx<D, MaybeAuthenticated>, input: RevokeUserSessionInput, ) -> Result<Success, AuthError>
Auto Trait Implementations§
impl Forget for RevokeUserSession
impl Freeze for RevokeUserSession
impl Move for RevokeUserSession
impl RefUnwindSafe for RevokeUserSession
impl Send for RevokeUserSession
impl Sync for RevokeUserSession
impl Unpin for RevokeUserSession
impl UnsafeUnpin for RevokeUserSession
impl UnwindSafe for RevokeUserSession
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