pub struct HistoryRewindPoint {
pub can_restore_files: bool,
pub event_id: String,
pub file_count: i64,
pub is_autopilot_continuation: bool,
pub lines_added: i64,
pub lines_removed: i64,
pub timestamp: String,
pub turn_changed_files: bool,
pub user_message: String,
}Expand description
A root user turn that the session can rewind to.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§can_restore_files: boolWhether at least one file in this turn or a later turn can be restored.
event_id: StringID of the user.message event that begins the discarded suffix.
file_count: i64Number of unique files in this turn and all later turns that have captured changes.
is_autopilot_continuation: boolWhether this turn was an automatically injected autopilot continuation.
lines_added: i64Lines added by this turn’s captured file changes.
lines_removed: i64Lines removed by this turn’s captured file changes.
timestamp: StringISO timestamp of the user turn.
turn_changed_files: boolWhether this turn itself captured any file changes.
user_message: StringUser-visible message text for the turn.
Trait Implementations§
Source§impl Clone for HistoryRewindPoint
impl Clone for HistoryRewindPoint
Source§fn clone(&self) -> HistoryRewindPoint
fn clone(&self) -> HistoryRewindPoint
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 HistoryRewindPoint
impl Debug for HistoryRewindPoint
Source§impl Default for HistoryRewindPoint
impl Default for HistoryRewindPoint
Source§fn default() -> HistoryRewindPoint
fn default() -> HistoryRewindPoint
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for HistoryRewindPoint
impl<'de> Deserialize<'de> for HistoryRewindPoint
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
Auto Trait Implementations§
impl Freeze for HistoryRewindPoint
impl RefUnwindSafe for HistoryRewindPoint
impl Send for HistoryRewindPoint
impl Sync for HistoryRewindPoint
impl Unpin for HistoryRewindPoint
impl UnsafeUnpin for HistoryRewindPoint
impl UnwindSafe for HistoryRewindPoint
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