#[non_exhaustive]pub struct PersistentReport {
pub added_vars: Vec<String>,
pub removed_vars: Vec<String>,
pub type_changed_vars: Vec<String>,
pub changed_types: Vec<String>,
pub ignored_slices: Vec<String>,
pub defaulted_slices: Vec<String>,
pub migrated_slices: Vec<String>,
pub from_schema_version: u32,
pub to_schema_version: u32,
pub migrated_vars: Vec<String>,
pub migrate_failed_vars: Vec<String>,
}Expand description
A report from reading persistent data. Compatibility of variables follows the same rules as save variables (only
persistent vars apply).
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.added_vars: Vec<String>Variables that were not in the persistent data and got default values (the declared initial values)
(module.variable).
removed_vars: Vec<String>Variables that were removed from the scripts and discarded (module.variable).
type_changed_vars: Vec<String>Variables whose type changed and got default values (the declared initial values) (module.variable).
changed_types: Vec<String>structs and enums whose declarations changed (module.TypeName; including types that contain changed types).
ignored_slices: Vec<String>Persistent slices of packages that are not registered, which were ignored (package names).
defaulted_slices: Vec<String>Persistent slices that were not in the persistent data and got default values (package names).
migrated_slices: Vec<String>Persistent slices whose versions differed and were migrated with migrate_persistent (package names).
from_schema_version: u32The schema version of the persistent data.
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.