pub struct SessionIndexEntry {
pub name: String,
pub title: String,
pub archived: bool,
pub time_secs: u64,
pub preview: String,
pub messages: usize,
pub mtime_nanos: u64,
pub size: u64,
}Expand description
One cached listing row — see SessionStore::index.
Fields§
§name: StringSession name (the resume handle).
title: StringDisplay title.
archived: boolWhether the session is archived.
time_secs: u64Seconds since the epoch used to order “newest first”.
preview: StringFirst user line, truncated — the picker’s preview.
messages: usizeMessages in the transcript.
mtime_nanos: u64Validator: transcript mtime in unix-NANOSECONDS at derivation time. Nanoseconds, not milliseconds: two writes inside one millisecond that happen to produce the same byte count would otherwise validate a stale row.
size: u64Validator: transcript size in bytes at derivation time.
Trait Implementations§
Source§impl Clone for SessionIndexEntry
impl Clone for SessionIndexEntry
Source§fn clone(&self) -> SessionIndexEntry
fn clone(&self) -> SessionIndexEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SessionIndexEntry
impl Debug for SessionIndexEntry
Source§impl Default for SessionIndexEntry
impl Default for SessionIndexEntry
Source§fn default() -> SessionIndexEntry
fn default() -> SessionIndexEntry
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SessionIndexEntry
impl<'de> Deserialize<'de> for SessionIndexEntry
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SessionIndexEntry, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SessionIndexEntry, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SessionIndexEntry
Source§impl PartialEq for SessionIndexEntry
impl PartialEq for SessionIndexEntry
Source§impl Serialize for SessionIndexEntry
impl Serialize for SessionIndexEntry
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for SessionIndexEntry
Auto Trait Implementations§
impl Freeze for SessionIndexEntry
impl RefUnwindSafe for SessionIndexEntry
impl Send for SessionIndexEntry
impl Sync for SessionIndexEntry
impl Unpin for SessionIndexEntry
impl UnsafeUnpin for SessionIndexEntry
impl UnwindSafe for SessionIndexEntry
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.