pub enum CatalogInstallerType {
Show 16 variants
Msi,
Msix,
Appx,
Msstore,
Exe,
Inno,
Nullsoft,
Wix,
Burn,
Pwa,
Font,
Portable,
Zip,
Nuget,
Scoop,
Unknown,
}Expand description
Normalized installer family stored on catalog installer rows.
This is intentionally broader than the source-facing InstallerType enum.
It captures direct installer families as well as package-manager families
such as Scoop and Chocolatey.
Variants§
Implementations§
Source§impl CatalogInstallerType
impl CatalogInstallerType
Sourcepub fn as_str(self) -> &'static str
pub fn as_str(self) -> &'static str
Return the canonical storage string for this installer family.
Sourcepub fn is_unknown(value: &Self) -> bool
pub fn is_unknown(value: &Self) -> bool
Return true when the value is the fallback bucket.
Sourcepub fn normalize(source: PackageSource, kind: InstallerType, url: &str) -> Self
pub fn normalize(source: PackageSource, kind: InstallerType, url: &str) -> Self
Normalize the installer family from source metadata and raw installer type.
Trait Implementations§
Source§impl AsRef<str> for CatalogInstallerType
impl AsRef<str> for CatalogInstallerType
Source§impl Clone for CatalogInstallerType
impl Clone for CatalogInstallerType
Source§fn clone(&self) -> CatalogInstallerType
fn clone(&self) -> CatalogInstallerType
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 CatalogInstallerType
impl Debug for CatalogInstallerType
Source§impl Default for CatalogInstallerType
impl Default for CatalogInstallerType
Source§fn default() -> CatalogInstallerType
fn default() -> CatalogInstallerType
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CatalogInstallerType
impl<'de> Deserialize<'de> for CatalogInstallerType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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 Display for CatalogInstallerType
impl Display for CatalogInstallerType
Source§impl From<CatalogInstallerType> for String
impl From<CatalogInstallerType> for String
Source§fn from(value: CatalogInstallerType) -> Self
fn from(value: CatalogInstallerType) -> Self
Converts to this type from the input type.
Source§impl FromStr for CatalogInstallerType
impl FromStr for CatalogInstallerType
Source§impl PartialEq for CatalogInstallerType
impl PartialEq for CatalogInstallerType
Source§impl Serialize for CatalogInstallerType
impl Serialize for CatalogInstallerType
impl Copy for CatalogInstallerType
impl Eq for CatalogInstallerType
impl StructuralPartialEq for CatalogInstallerType
Auto Trait Implementations§
impl Freeze for CatalogInstallerType
impl RefUnwindSafe for CatalogInstallerType
impl Send for CatalogInstallerType
impl Sync for CatalogInstallerType
impl Unpin for CatalogInstallerType
impl UnwindSafe for CatalogInstallerType
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