pub fn render_admin_session_detail_json(
session: &AdminSession,
current_token_hash: &str,
) -> ValueExpand description
A session listing plus one member no CLI rendering needed: whether this row is the caller’s own live session.
render_admin_user_detail_json’s arrangement – the listing shape, cloned
and extended, never the reverse. current_token_hash is the caller’s own
session (never a session being looked at, which never has this member’s
answer be true of itself in a useful way), so the web panel’s own sessions
card can badge or relabel the row that revoking would sign the viewer out
of, without teaching AdminSession anything about who is asking.