#[non_exhaustive]pub struct LoadReport {Show 15 fields
pub resolved_by: ResolvedBy,
pub added_vars: Vec<String>,
pub removed_vars: Vec<String>,
pub type_changed_vars: Vec<String>,
pub changed_types: Vec<String>,
pub type_changed_locals: Vec<String>,
pub ignored_slices: Vec<String>,
pub defaulted_slices: Vec<String>,
pub migrated_slices: Vec<String>,
pub changed_rules: Vec<String>,
pub from_schema_version: u32,
pub to_schema_version: u32,
pub migrated_vars: Vec<String>,
pub migrate_failed_vars: Vec<String>,
pub persistent: Option<PersistentReport>,
}Expand description
The report of a load.
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.resolved_by: ResolvedByHow the position was found. When there is a call stack, the least reliable method among the stop point and the call
lines (Hash is less reliable than Id, Ordinal than Hash, LabelStart than Ordinal).
added_vars: Vec<String>Variables filled with default values (module.variable; only save vars; persistent vars are in the persistent data
report).
removed_vars: Vec<String>Variables that were removed from the scripts and discarded (module.variable).
type_changed_vars: Vec<String>Variables whose type changed (module.variable; if any, it goes back to the start of the label).
changed_types: Vec<String>structs and enums whose declarations changed (module.TypeName; including types that contain changed types).
Variables holding values of those types go into type_changed_vars.
type_changed_locals: Vec<String>Local variables whose type changed (module.label.variable; the current label and the label of each call stack frame;
if any, it goes back to the start of the label). When only names or counts changed, they do not appear here
(resolved_by becomes LabelStart).
ignored_slices: Vec<String>Slices of packages that are not registered, which were ignored (package names).
defaulted_slices: Vec<String>Packages’ state slices that were not in the save and got default values (State::default()) (package names).
migrated_slices: Vec<String>Packages’ state slices whose versions differed and were migrated with migrate (package names).
changed_rules: Vec<String>Packages whose rule version (Package::RULES_VERSION) differs from when saved (package names, in registration order).
Execution continues with the current rules, so the same command with the same arguments may give a different result
than before the save. Packages that were not in the save are not included.
from_schema_version: u32The schema version of the save.
to_schema_version: u32The schema version of the scripts.
migrated_vars: Vec<String>Variables converted by migrate (module.variable; renamed variables have the new name).
migrate_failed_vars: Vec<String>Variables whose migrate conversion failed and were reset to their initial values under LoadPolicy::Lenient
(if any, it goes back to the start of the label).
persistent: Option<PersistentReport>The report from reading the persistent data in VmConfig::persistent (None if not given).