pub enum ListSort {
NameAsc,
RecencyDesc,
}Expand description
Sort order for HistoryRoot::list_projects_with /
HistoryRoot::list_sessions_with.
Variants§
NameAsc
Sort by the on-disk identifier alphabetically: slug for
projects, session id for sessions. This is the default for
the zero-arg HistoryRoot::list_projects /
HistoryRoot::list_sessions methods to preserve the
historical behavior of the pre-pagination API.
RecencyDesc
Sort by most-recent activity, descending. For projects this
is last_modified (filesystem mtime). For sessions this is
last_timestamp (the last JSONL entry’s timestamp field,
compared lexicographically – which matches chronological
order for the ISO-8601 UTC strings Claude Code writes).
Items with None last-time end up at the tail.
Trait Implementations§
impl Copy for ListSort
impl Eq for ListSort
impl StructuralPartialEq for ListSort
Auto Trait Implementations§
impl Freeze for ListSort
impl RefUnwindSafe for ListSort
impl Send for ListSort
impl Sync for ListSort
impl Unpin for ListSort
impl UnsafeUnpin for ListSort
impl UnwindSafe for ListSort
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