pub struct ToolApplyPreview {
pub planned_files: Vec<PathBuf>,
pub changed_files: Vec<PathBuf>,
pub unchanged_files: Vec<PathBuf>,
pub missing_inputs: Vec<String>,
}Expand description
Non-mutating preview of what a tool apply would write.
Fields§
§planned_files: Vec<PathBuf>Files the apply operation would manage, relative to the game directory.
changed_files: Vec<PathBuf>Planned files whose destination is missing or byte-different.
unchanged_files: Vec<PathBuf>Planned files whose destination already matches the expected bytes.
missing_inputs: Vec<String>Required inputs that are unavailable, such as a missing source DLL.
Implementations§
Source§impl ToolApplyPreview
impl ToolApplyPreview
pub fn has_changes(&self) -> bool
pub fn record_file(&mut self, rel_path: PathBuf, changed: bool)
Trait Implementations§
Source§impl Clone for ToolApplyPreview
impl Clone for ToolApplyPreview
Source§fn clone(&self) -> ToolApplyPreview
fn clone(&self) -> ToolApplyPreview
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 ToolApplyPreview
impl Debug for ToolApplyPreview
Source§impl Default for ToolApplyPreview
impl Default for ToolApplyPreview
Source§fn default() -> ToolApplyPreview
fn default() -> ToolApplyPreview
Returns the “default value” for a type. Read more
Source§impl PartialEq for ToolApplyPreview
impl PartialEq for ToolApplyPreview
Source§fn eq(&self, other: &ToolApplyPreview) -> bool
fn eq(&self, other: &ToolApplyPreview) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ToolApplyPreview
impl StructuralPartialEq for ToolApplyPreview
Auto Trait Implementations§
impl Freeze for ToolApplyPreview
impl RefUnwindSafe for ToolApplyPreview
impl Send for ToolApplyPreview
impl Sync for ToolApplyPreview
impl Unpin for ToolApplyPreview
impl UnsafeUnpin for ToolApplyPreview
impl UnwindSafe for ToolApplyPreview
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.