pub struct SessionInfo {
pub path: PathBuf,
pub id: String,
pub cwd: String,
pub name: Option<String>,
pub parent_session_path: Option<String>,
pub created: DateTime<Utc>,
pub modified: DateTime<Utc>,
pub message_count: usize,
pub first_message: String,
pub all_messages_text: String,
}Expand description
Lightweight metadata about a session, used for listing and selection.
Fields§
§path: PathBuf§id: String§cwd: String§name: Option<String>§parent_session_path: Option<String>§created: DateTime<Utc>§modified: DateTime<Utc>§message_count: usize§first_message: String§all_messages_text: StringAll messages concatenated (for text search).
Trait Implementations§
Source§impl Clone for SessionInfo
impl Clone for SessionInfo
Source§fn clone(&self) -> SessionInfo
fn clone(&self) -> SessionInfo
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 moreAuto Trait Implementations§
impl Freeze for SessionInfo
impl RefUnwindSafe for SessionInfo
impl Send for SessionInfo
impl Sync for SessionInfo
impl Unpin for SessionInfo
impl UnsafeUnpin for SessionInfo
impl UnwindSafe for SessionInfo
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