pub struct SessionRestoreResult {Show 14 fields
pub messages: Vec<Message>,
pub file_history_snapshots: Vec<FileHistorySnapshot>,
pub attribution_snapshots: Vec<AttributionSnapshotMessage>,
pub context_collapse_commits: Vec<ContextCollapseCommitEntry>,
pub context_collapse_snapshot: Option<ContextCollapseSnapshotEntry>,
pub todo_items: Vec<String>,
pub agent_info: Option<AgentRestoreInfo>,
pub standalone_agent_context: Option<StandaloneAgentContext>,
pub metadata: Option<SessionMetadata>,
pub mode: Option<String>,
pub worktree_session: Option<PersistedWorktreeSession>,
pub custom_title: Option<String>,
pub tag: Option<String>,
pub skipped_count: usize,
}Expand description
Result of restoring a session from its NDJSON transcript log.
Fields§
§messages: Vec<Message>Messages extracted from the session transcript.
file_history_snapshots: Vec<FileHistorySnapshot>File history snapshots for state restoration.
attribution_snapshots: Vec<AttributionSnapshotMessage>Attribution snapshots for commit attribution state.
context_collapse_commits: Vec<ContextCollapseCommitEntry>Context-collapse commit entries for rebuilding the collapsed view.
context_collapse_snapshot: Option<ContextCollapseSnapshotEntry>Context-collapse staged snapshot.
todo_items: Vec<String>TODO items extracted from the last TodoWrite tool call.
agent_info: Option<AgentRestoreInfo>Agent restoration info if the session used a custom agent.
standalone_agent_context: Option<StandaloneAgentContext>Standalone agent visual context (name + color).
metadata: Option<SessionMetadata>Session metadata (model, cwd, etc.).
mode: Option<String>Session mode from the transcript (coordinator or normal).
worktree_session: Option<PersistedWorktreeSession>Worktree session state.
custom_title: Option<String>Custom session title.
tag: Option<String>Session tag.
skipped_count: usizeNumber of entries skipped due to parse errors.
Trait Implementations§
Source§impl Clone for SessionRestoreResult
impl Clone for SessionRestoreResult
Source§fn clone(&self) -> SessionRestoreResult
fn clone(&self) -> SessionRestoreResult
Returns a duplicate of the value. Read more
1.0.0 · 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 SessionRestoreResult
impl RefUnwindSafe for SessionRestoreResult
impl Send for SessionRestoreResult
impl Sync for SessionRestoreResult
impl Unpin for SessionRestoreResult
impl UnsafeUnpin for SessionRestoreResult
impl UnwindSafe for SessionRestoreResult
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