pub struct InstallPlan {
pub operations: Vec<FileOperation>,
}Expand description
The resolved installation plan after all user selections.
Fields§
§operations: Vec<FileOperation>File operations sorted by priority (lower first, higher overwrites).
Implementations§
Source§impl InstallPlan
impl InstallPlan
Sourcepub fn execute(&self, source: &Path, destination: &Path) -> Result<()>
pub fn execute(&self, source: &Path, destination: &Path) -> Result<()>
Execute this plan by copying files from source to destination.
source is the root of the unpacked mod archive. destination is the
game’s data directory (or staging folder). Operations are applied in
priority order — higher-priority files overwrite lower.
Intermediate directories are created as needed. An empty operation destination means the file keeps its source-relative path.
Trait Implementations§
Source§impl Clone for InstallPlan
impl Clone for InstallPlan
Source§fn clone(&self) -> InstallPlan
fn clone(&self) -> InstallPlan
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 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