pub struct CatalogInstaller {Show 15 fields
pub package_id: CatalogId,
pub url: String,
pub hash: String,
pub hash_algorithm: HashAlgorithm,
pub installer_type: CatalogInstallerType,
pub installer_switches: Option<String>,
pub platform: Option<String>,
pub commands: Option<String>,
pub protocols: Option<String>,
pub file_extensions: Option<String>,
pub capabilities: Option<String>,
pub arch: Architecture,
pub kind: InstallerType,
pub nested_kind: Option<InstallerType>,
pub scope: Option<String>,
}Expand description
A validated installer entry associated with a catalog package.
Fields§
§package_id: CatalogIdPackage id this installer belongs to.
url: StringDownload URL for the installer payload.
hash: StringExpected checksum or empty string when checksumless installs are allowed.
hash_algorithm: HashAlgorithmChecksum algorithm used to verify the installer.
installer_type: CatalogInstallerTypeNormalized installer family used for catalog browsing and filtering.
installer_switches: Option<String>Silent-install or package-manager switches when the source provides them.
platform: Option<String>Optional installer platform metadata encoded as JSON text.
commands: Option<String>Optional installer commands encoded as JSON text.
protocols: Option<String>Optional installer protocols encoded as JSON text.
file_extensions: Option<String>Optional installer file extensions encoded as JSON text.
capabilities: Option<String>Optional installer capabilities encoded as JSON text.
arch: ArchitectureArchitecture target for the installer.
kind: InstallerTypeRaw installer format used by the engine-facing model, distinct from installer_type.
nested_kind: Option<InstallerType>Nested installer format when the installer contains an archive payload.
scope: Option<String>Optional install scope reported by the source, usually user or machine for Winget.
Implementations§
Source§impl CatalogInstaller
impl CatalogInstaller
Sourcepub fn validate(&self) -> Result<(), ModelError>
pub fn validate(&self) -> Result<(), ModelError>
Validate the installer URL, checksum, and ids.
Sourcepub fn canonical_key(&self) -> CanonicalInstallerKey
pub fn canonical_key(&self) -> CanonicalInstallerKey
Return the canonical identity used to deduplicate installer rows.
Sourcepub fn merge_metadata_from(&mut self, other: &Self) -> Result<(), ModelError>
pub fn merge_metadata_from(&mut self, other: &Self) -> Result<(), ModelError>
Merge metadata-only fields from another installer that shares the same canonical key.
Trait Implementations§
Source§impl Clone for CatalogInstaller
impl Clone for CatalogInstaller
Source§fn clone(&self) -> CatalogInstaller
fn clone(&self) -> CatalogInstaller
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more