#[non_exhaustive]pub struct UninstallBatch {
pub mods: Vec<String>,
pub loaders: Vec<String>,
pub untracked: Vec<PathBuf>,
}Expand description
What an uninstall batch will remove.
Mods and loaders are held apart because a caller showing this to a user needs to say the loader goes too, and because removing loaders last keeps every intermediate state one a user could have reached by hand. Ordinarily there is at most one loader, but the registry is keyed on package identity rather than game, so nothing rules out a second.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.mods: Vec<String>Every non-loader identifier to remove, sorted.
loaders: Vec<String>Every recognised mod loader to remove, sorted, removed after mods.
untracked: Vec<PathBuf>Root-relative mod folders the record does not account for, which the reconcile sweep removes along with the named mods.
Trait Implementations§
Source§impl Clone for UninstallBatch
impl Clone for UninstallBatch
Source§fn clone(&self) -> UninstallBatch
fn clone(&self) -> UninstallBatch
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 UninstallBatch
impl Debug for UninstallBatch
Source§impl Default for UninstallBatch
impl Default for UninstallBatch
Source§fn default() -> UninstallBatch
fn default() -> UninstallBatch
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for UninstallBatch
impl RefUnwindSafe for UninstallBatch
impl Send for UninstallBatch
impl Sync for UninstallBatch
impl Unpin for UninstallBatch
impl UnsafeUnpin for UninstallBatch
impl UnwindSafe for UninstallBatch
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