pub struct SessionHistoryRewindResult {
pub error: Option<String>,
pub events_removed: Option<i64>,
pub outcome: HistoryRewindOutcome,
pub restored_files: Vec<String>,
pub skipped_files: Vec<HistorySkippedFileRestore>,
}Expand description
Structured outcome of a rewind request.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§error: Option<String>Failure detail. Set only for the failure and partial-failure outcomes (files-rolled-back, rollback-incomplete, truncation-failed, checkpoint-cleanup-failed, snapshot-prune-failed); omitted for success and for the unavailable outcomes (session-busy, file-change-tracking-disabled, unsupported-remote-session).
events_removed: Option<i64>Number of persisted events removed by conversation truncation. Present only when truncation succeeded (outcomes success, checkpoint-cleanup-failed, and snapshot-prune-failed); omitted for every unavailable outcome (session-busy, file-change-tracking-disabled, unsupported-remote-session) and for truncation-failed, files-rolled-back, and rollback-incomplete.
outcome: HistoryRewindOutcomeOverall rewind outcome. This discriminates the result: it governs which of the remaining fields are populated, so consumers must switch on it before reading eventsRemoved, restoredFiles, skippedFiles, or error. See each field for the outcomes that populate it.
restored_files: Vec<String>Absolute paths restored to their captured preimages. Always empty for conversation-only rewinds and for the unavailable outcomes (session-busy, file-change-tracking-disabled, unsupported-remote-session); only conversation-and-files outcomes that reached the file-restore stage populate it.
skipped_files: Vec<HistorySkippedFileRestore>Captured files intentionally left unchanged. Always empty for conversation-only rewinds and for the unavailable outcomes (session-busy, file-change-tracking-disabled, unsupported-remote-session); only conversation-and-files outcomes that reached the file-restore stage populate it.
Trait Implementations§
Source§impl Clone for SessionHistoryRewindResult
impl Clone for SessionHistoryRewindResult
Source§fn clone(&self) -> SessionHistoryRewindResult
fn clone(&self) -> SessionHistoryRewindResult
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more