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