pub struct AppsAndFeaturesEntry { /* private fields */ }Implementations§
Source§impl AppsAndFeaturesEntry
impl AppsAndFeaturesEntry
Sourcepub fn builder() -> AppsAndFeaturesEntryBuilder
pub fn builder() -> AppsAndFeaturesEntryBuilder
Create an instance of AppsAndFeaturesEntry using the builder syntax
Source§impl AppsAndFeaturesEntry
impl AppsAndFeaturesEntry
Sourcepub fn display_name(&self) -> Option<&str>
pub fn display_name(&self) -> Option<&str>
Returns the display name, if any.
Sourcepub const fn display_version(&self) -> Option<&Version>
pub const fn display_version(&self) -> Option<&Version>
Returns the display version, if any.
Sourcepub fn product_code(&self) -> Option<&str>
pub fn product_code(&self) -> Option<&str>
Returns the product code, if any.
Sourcepub fn upgrade_code(&self) -> Option<&str>
pub fn upgrade_code(&self) -> Option<&str>
Returns the upgrade code, if any.
Sourcepub const fn installer_type(&self) -> Option<InstallerType>
pub const fn installer_type(&self) -> Option<InstallerType>
Returns the installer type, if any.
Sourcepub const fn is_empty(&self) -> bool
pub const fn is_empty(&self) -> bool
Returns true if all the AppsAndFeatureEntry fields are None.
§Examples
assert!(AppsAndFeaturesEntry::default().is_empty());
let arp_entry = AppsAndFeaturesEntry::builder().installer_type(InstallerType::Burn).build();
assert!(!arp_entry.is_empty());Sourcepub fn deduplicate(&mut self, default_locale_manifest: &DefaultLocaleManifest)
pub fn deduplicate(&mut self, default_locale_manifest: &DefaultLocaleManifest)
Removes values that are equivalent to their respective value in the default locale manifest.
AppsAndFeaturesEntry field -> default locale field:
- Display name -> Package name
- Publisher -> Publisher
- Display version -> Package version
Trait Implementations§
Source§impl Clone for AppsAndFeaturesEntry
impl Clone for AppsAndFeaturesEntry
Source§fn clone(&self) -> AppsAndFeaturesEntry
fn clone(&self) -> AppsAndFeaturesEntry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AppsAndFeaturesEntry
impl Debug for AppsAndFeaturesEntry
Source§impl Default for AppsAndFeaturesEntry
impl Default for AppsAndFeaturesEntry
Source§impl From<AppsAndFeaturesEntry> for AppsAndFeaturesEntries
impl From<AppsAndFeaturesEntry> for AppsAndFeaturesEntries
Source§fn from(apps_and_features_entries: AppsAndFeaturesEntry) -> Self
fn from(apps_and_features_entries: AppsAndFeaturesEntry) -> Self
Creates a new AppsAndFeaturesEntries from a single AppsAndFeaturesEntry.
Source§impl FromIterator<AppsAndFeaturesEntry> for AppsAndFeaturesEntries
impl FromIterator<AppsAndFeaturesEntry> for AppsAndFeaturesEntries
Source§fn from_iter<I: IntoIterator<Item = AppsAndFeaturesEntry>>(iter: I) -> Self
fn from_iter<I: IntoIterator<Item = AppsAndFeaturesEntry>>(iter: I) -> Self
Creates a value from an iterator. Read more
Source§impl Hash for AppsAndFeaturesEntry
impl Hash for AppsAndFeaturesEntry
Source§impl Ord for AppsAndFeaturesEntry
impl Ord for AppsAndFeaturesEntry
Source§fn cmp(&self, other: &AppsAndFeaturesEntry) -> Ordering
fn cmp(&self, other: &AppsAndFeaturesEntry) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for AppsAndFeaturesEntry
impl PartialEq for AppsAndFeaturesEntry
Source§impl PartialOrd for AppsAndFeaturesEntry
impl PartialOrd for AppsAndFeaturesEntry
impl Eq for AppsAndFeaturesEntry
impl StructuralPartialEq for AppsAndFeaturesEntry
Auto Trait Implementations§
impl Freeze for AppsAndFeaturesEntry
impl RefUnwindSafe for AppsAndFeaturesEntry
impl Send for AppsAndFeaturesEntry
impl Sync for AppsAndFeaturesEntry
impl Unpin for AppsAndFeaturesEntry
impl UnwindSafe for AppsAndFeaturesEntry
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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