pub struct AppsAndFeaturesEntry {
pub display_name: Option<CompactString>,
pub publisher: Option<CompactString>,
pub display_version: Option<Version>,
pub product_code: Option<String>,
pub upgrade_code: Option<String>,
pub installer_type: Option<InstallerType>,
}Fields§
§display_name: Option<CompactString>§publisher: Option<CompactString>§display_version: Option<Version>§product_code: Option<String>§upgrade_code: Option<String>§installer_type: Option<InstallerType>Implementations§
Source§impl AppsAndFeaturesEntry
impl AppsAndFeaturesEntry
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new, emptyAppsAndFeaturesEntry.
§Examples
use winget_types::installer::AppsAndFeaturesEntry;
let mut entry = AppsAndFeaturesEntry::new();pub fn with_display_name<T, U>(self, display_name: T) -> Self
pub fn with_publisher<T, U>(self, publisher: T) -> Self
pub fn with_display_version<T, U>(self, display_version: T) -> Self
pub fn with_product_code<T, U>(self, product_code: T) -> Self
pub fn with_upgrade_code<T, U>(self, upgrade_code: T) -> Self
pub fn with_installer_type<T, U>(self, installer_type: T) -> Self
Sourcepub const fn is_empty(&self) -> bool
pub const fn is_empty(&self) -> bool
Returns true if all the AppsAndFeatureEntry fields are None.
§Examples
use winget_types::installer::{AppsAndFeaturesEntry, InstallerType};
let mut arp_entry = AppsAndFeaturesEntry::default();
assert!(arp_entry.is_empty());
arp_entry.installer_type = Some(InstallerType::Burn);
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 copy 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§fn default() -> AppsAndFeaturesEntry
fn default() -> AppsAndFeaturesEntry
Returns the “default value” for a type. 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