pub struct InstallPlan {
pub product: String,
pub source_root: PathBuf,
pub home: PathBuf,
pub state_home: PathBuf,
pub actions: Vec<PlanAction>,
}Expand description
Resolved install plan. Each entry in actions is ready to run; the
dry-run printer formats them, the apply executor mutates the
filesystem. home and source_root are kept absolute so the plan
transcript is unambiguous in tests.
Fields§
§product: String§source_root: PathBuf§home: PathBuf§state_home: PathBuf§actions: Vec<PlanAction>Implementations§
Source§impl InstallPlan
impl InstallPlan
Sourcepub fn build(
product: &str,
source_root: &Path,
home: &Path,
state_home: &Path,
link_map: &LinkMap,
) -> Result<Self, PlanError>
pub fn build( product: &str, source_root: &Path, home: &Path, state_home: &Path, link_map: &LinkMap, ) -> Result<Self, PlanError>
Build the plan from a parsed link-map. source_root must be the
canonicalised agent-runtime-kit checkout root; home is the
product runtime home (~/.codex, ~/.claude, or a sandbox). Both
must be absolute.
Trait Implementations§
Source§impl Clone for InstallPlan
impl Clone for InstallPlan
Auto Trait Implementations§
impl Freeze for InstallPlan
impl RefUnwindSafe for InstallPlan
impl Send for InstallPlan
impl Sync for InstallPlan
impl Unpin for InstallPlan
impl UnsafeUnpin for InstallPlan
impl UnwindSafe for InstallPlan
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