#[non_exhaustive]pub struct InstallBatch {
pub desired: Vec<String>,
pub protect_disabled: Vec<String>,
}Expand description
What an install batch will install, and whose disabled state it must restore afterwards.
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.desired: Vec<String>Every identifier to install. Dependency closures are resolved per item by the install itself, so this is what the caller asked for, not the closure.
protect_disabled: Vec<String>Recorded mods whose enabled: false must be restored after the batch.
An install upserts every dependency-closure member with enabled: true and
modlist::upsert replaces the entry wholesale, so without this a mod the
user disabled is silently re-enabled and its .old files are orphaned
beside the freshly written ones.
Implementations§
Trait Implementations§
Source§impl Clone for InstallBatch
impl Clone for InstallBatch
Source§fn clone(&self) -> InstallBatch
fn clone(&self) -> InstallBatch
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 InstallBatch
impl Debug for InstallBatch
Source§impl Default for InstallBatch
impl Default for InstallBatch
Source§fn default() -> InstallBatch
fn default() -> InstallBatch
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for InstallBatch
impl RefUnwindSafe for InstallBatch
impl Send for InstallBatch
impl Sync for InstallBatch
impl Unpin for InstallBatch
impl UnsafeUnpin for InstallBatch
impl UnwindSafe for InstallBatch
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