Struct InstallerManifest

Source
pub struct InstallerManifest {
Show 40 fields pub package_identifier: PackageIdentifier, pub package_version: PackageVersion, pub channel: Option<String>, pub locale: Option<LanguageTag>, pub platform: Option<Platform>, pub minimum_os_version: Option<MinimumOSVersion>, pub type: Option<InstallerType>, pub nested_installer_type: Option<NestedInstallerType>, pub nested_installer_files: Option<BTreeSet<NestedInstallerFiles>>, pub scope: Option<Scope>, pub install_modes: Option<InstallModes>, pub switches: Option<InstallerSwitches>, pub success_codes: Option<BTreeSet<InstallerSuccessCode>>, pub expected_return_codes: Option<BTreeSet<ExpectedReturnCodes>>, pub upgrade_behavior: Option<UpgradeBehavior>, pub commands: Option<BTreeSet<Command>>, pub protocols: Option<BTreeSet<Protocol>>, pub file_extensions: Option<BTreeSet<FileExtension>>, pub dependencies: Option<Dependencies>, pub package_family_name: Option<PackageFamilyName>, pub product_code: Option<String>, pub capabilities: Option<BTreeSet<String>>, pub restricted_capabilities: Option<BTreeSet<String>>, pub markets: Option<Markets>, pub aborts_terminal: Option<bool>, pub release_date: Option<NaiveDate>, pub install_location_required: Option<bool>, pub require_explicit_upgrade: Option<bool>, pub display_install_warnings: Option<bool>, pub unsupported_os_architectures: Option<UnsupportedOSArchitecture>, pub unsupported_arguments: Option<UnsupportedArguments>, pub apps_and_features_entries: Option<Vec<AppsAndFeaturesEntry>>, pub elevation_requirement: Option<ElevationRequirement>, pub installation_metadata: Option<InstallationMetadata>, pub download_command_prohibited: Option<bool>, pub repair_behavior: Option<RepairBehavior>, pub archive_binaries_depend_on_path: Option<bool>, pub installers: Vec<Installer>, pub manifest_type: ManifestType, pub manifest_version: ManifestVersion,
}

Fields§

§package_identifier: PackageIdentifier§package_version: PackageVersion§channel: Option<String>§locale: Option<LanguageTag>§platform: Option<Platform>§minimum_os_version: Option<MinimumOSVersion>§type: Option<InstallerType>§nested_installer_type: Option<NestedInstallerType>§nested_installer_files: Option<BTreeSet<NestedInstallerFiles>>§scope: Option<Scope>§install_modes: Option<InstallModes>§switches: Option<InstallerSwitches>§success_codes: Option<BTreeSet<InstallerSuccessCode>>§expected_return_codes: Option<BTreeSet<ExpectedReturnCodes>>§upgrade_behavior: Option<UpgradeBehavior>§commands: Option<BTreeSet<Command>>§protocols: Option<BTreeSet<Protocol>>§file_extensions: Option<BTreeSet<FileExtension>>§dependencies: Option<Dependencies>§package_family_name: Option<PackageFamilyName>§product_code: Option<String>§capabilities: Option<BTreeSet<String>>§restricted_capabilities: Option<BTreeSet<String>>§markets: Option<Markets>§aborts_terminal: Option<bool>§release_date: Option<NaiveDate>§install_location_required: Option<bool>§require_explicit_upgrade: Option<bool>§display_install_warnings: Option<bool>§unsupported_os_architectures: Option<UnsupportedOSArchitecture>§unsupported_arguments: Option<UnsupportedArguments>§apps_and_features_entries: Option<Vec<AppsAndFeaturesEntry>>§elevation_requirement: Option<ElevationRequirement>§installation_metadata: Option<InstallationMetadata>§download_command_prohibited: Option<bool>§repair_behavior: Option<RepairBehavior>§archive_binaries_depend_on_path: Option<bool>§installers: Vec<Installer>§manifest_type: ManifestType§manifest_version: ManifestVersion

Implementations§

Source§

impl InstallerManifest

Source

pub fn reorder_keys( &mut self, package_identifier: &PackageIdentifier, package_version: &PackageVersion, )

Trait Implementations§

Source§

impl Default for InstallerManifest

Source§

fn default() -> InstallerManifest

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for InstallerManifest

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Manifest for InstallerManifest

Source§

const SCHEMA: &'static str

Source§

const TYPE: ManifestType = ManifestType::Installer

Source§

impl Serialize for InstallerManifest

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> MaybeSendSync for T