#[non_exhaustive]pub struct GameProfile {
pub meta: Meta,
pub package_loader: LoaderKind,
pub instance_type: InstanceType,
pub exe_names: Vec<String>,
pub distributions: Vec<Distribution>,
pub relative_file_exclusions: Vec<String>,
pub install_rules: Vec<InstallRule>,
pub data_folder_name: Option<String>,
pub settings_identifier: Option<String>,
pub package_index: Option<String>,
}Expand description
A per-manager profile for a game: its loader, install rules, and metadata.
#[non_exhaustive]: fields may be added as the ecosystem schema grows.
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.meta: MetaDisplay metadata for this profile.
package_loader: LoaderKindThe mod-loader family this profile uses.
instance_type: InstanceTypeWhether this profile targets the game or a dedicated server.
exe_names: Vec<String>Candidate executable names for game-directory validation.
distributions: Vec<Distribution>Store distributions for this profile.
relative_file_exclusions: Vec<String>Filenames to skip when copying a package’s contents (e.g. manifest.json).
A JSON null is normalized to an empty list.
install_rules: Vec<InstallRule>The routing rules for a regular mod’s files (a recursive forest).
data_folder_name: Option<String>The loader-specific data subdirectory, when the schema records one.
settings_identifier: Option<String>The manager’s settings identifier for this profile.
package_index: Option<String>The package-index URL for this community.
Implementations§
Source§impl GameProfile
impl GameProfile
Sourcepub fn steam_app_id(&self) -> Option<u32>
pub fn steam_app_id(&self) -> Option<u32>
The Steam application id, parsed from the profile’s distributions, if any.