pub struct SessionRef {
pub path: PathBuf,
pub agent: String,
pub project: Option<String>,
pub size_bytes: u64,
pub modified: Option<Timestamp>,
}Expand description
Lightweight pointer to one session file on disk, produced by Adapter::discover.
Fields§
§path: PathBuf§agent: StringAdapter id, e.g. "claude-code".
project: Option<String>Project label as the agent records it (for Claude Code: the URL-encoded
cwd directory name, e.g. F--skiagram).
size_bytes: u64§modified: Option<Timestamp>Trait Implementations§
Source§impl Clone for SessionRef
impl Clone for SessionRef
Source§fn clone(&self) -> SessionRef
fn clone(&self) -> SessionRef
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 SessionRef
impl Debug for SessionRef
Source§impl<'de> Deserialize<'de> for SessionRef
impl<'de> Deserialize<'de> for SessionRef
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SessionRef
impl PartialEq for SessionRef
Source§fn eq(&self, other: &SessionRef) -> bool
fn eq(&self, other: &SessionRef) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SessionRef
impl Serialize for SessionRef
impl StructuralPartialEq for SessionRef
Auto Trait Implementations§
impl Freeze for SessionRef
impl RefUnwindSafe for SessionRef
impl Send for SessionRef
impl Sync for SessionRef
impl Unpin for SessionRef
impl UnsafeUnpin for SessionRef
impl UnwindSafe for SessionRef
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