pub struct RestoredWorkspace {
pub root: PathBuf,
pub open: Vec<PathBuf>,
pub active: Option<PathBuf>,
pub layout: PaneGeometry,
pub terminals: Vec<PathBuf>,
pub agent_history: Vec<AgentHistoryLine>,
/* private fields */
}Expand description
Workspace-owned state that can be reconstructed without pretending to resume an OS process or ACP session (ADR-0014 §4).
Fields§
§root: PathBuf§open: Vec<PathBuf>§active: Option<PathBuf>§layout: PaneGeometry§terminals: Vec<PathBuf>Working directories only. Restore starts fresh shells in these directories.
agent_history: Vec<AgentHistoryLine>Read-only display history. It is deliberately separate from a live ACP session.
Implementations§
Trait Implementations§
Source§impl Clone for RestoredWorkspace
impl Clone for RestoredWorkspace
Source§fn clone(&self) -> RestoredWorkspace
fn clone(&self) -> RestoredWorkspace
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 RestoredWorkspace
impl Debug for RestoredWorkspace
Source§impl Default for RestoredWorkspace
impl Default for RestoredWorkspace
Source§impl<'de> Deserialize<'de> for RestoredWorkspacewhere
RestoredWorkspace: Default,
impl<'de> Deserialize<'de> for RestoredWorkspacewhere
RestoredWorkspace: Default,
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 RestoredWorkspace
impl PartialEq for RestoredWorkspace
Source§impl Serialize for RestoredWorkspace
impl Serialize for RestoredWorkspace
impl StructuralPartialEq for RestoredWorkspace
Auto Trait Implementations§
impl Freeze for RestoredWorkspace
impl RefUnwindSafe for RestoredWorkspace
impl Send for RestoredWorkspace
impl Sync for RestoredWorkspace
impl Unpin for RestoredWorkspace
impl UnsafeUnpin for RestoredWorkspace
impl UnwindSafe for RestoredWorkspace
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