pub struct StopImpersonating;Expand description
POST /admin/stop-impersonating: ends the impersonation session and signs the browser
back in as the admin from the admin_session cookie.
Trait Implementations§
Source§impl<D: Adapter> Endpoint<D> for StopImpersonating
impl<D: Adapter> Endpoint<D> for StopImpersonating
const METHOD: Method = Method::POST
const PATH: &'static str = "/admin/stop-impersonating"
type Access = Authenticated
type Input = Empty
type Output = SessionOutput
async fn call( &self, ctx: Ctx<D, Authenticated>, _: Empty, ) -> Result<SessionOutput, AuthError>
Auto Trait Implementations§
impl Forget for StopImpersonating
impl Freeze for StopImpersonating
impl Move for StopImpersonating
impl RefUnwindSafe for StopImpersonating
impl Send for StopImpersonating
impl Sync for StopImpersonating
impl Unpin for StopImpersonating
impl UnsafeUnpin for StopImpersonating
impl UnwindSafe for StopImpersonating
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