#[non_exhaustive]pub struct ImportOutcome {
pub source: ImportSource,
pub installed: Vec<String>,
pub unchanged: Vec<String>,
pub reinstalled: Vec<String>,
}Expand description
What an import installed, by which route.
Carries source so a caller can word the outcome per route, e.g. disclosing
that versions were not preserved, without classifying the source string a
second time.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.source: ImportSourceHow source was classified, and therefore which route ran.
installed: Vec<String>Identifiers this import installed, sorted. Dependencies are included for
ImportSource::Archive and ImportSource::Code; for
ImportSource::R2modmanDir it is every identifier the copied mods.yml
names.
unchanged: Vec<String>Identifiers skipped because the target already recorded the version that
would be installed, sorted and never also in installed. See
ImportedMods::unchanged. Always empty for
ImportSource::R2modmanDir, which copies every file regardless.
reinstalled: Vec<String>Identifiers reinstalled at their latest version so they would have an
install record. Only ever non-empty for ImportSource::R2modmanDir; see
AdoptedProfile::reinstalled.