[][src]Struct appx::PackageFullName

pub struct PackageFullName(_);

e.g. NcsiUwpApp_1000.19041.423.0_neutral_neutral_8wekyb3d8bbwe - A specific appx package.

This is comprised of the following underscore separated fields:

FieldExampleExample
NameNcsiUwpAppCanonicalGroupLimited.Ubuntu20.04onWindows
Version1000.19041.423.02004.2020.812.0
Architectureneutralx64
???neutral(blank), split.scale-100
PublisherId8wekyb3d8bbwe79rhkp1fndgsc

Examples

  • NcsiUwpApp_1000.19041.423.0_neutral_neutral_8wekyb3d8bbwe
  • CanonicalGroupLimited.UbuntuonWindows_2004.2020.812.0_x64__79rhkp1fndgsc
  • CanonicalGroupLimited.Ubuntu16.04onWindows_1604.2020.824.0_x64__79rhkp1fndgsc
  • CanonicalGroupLimited.Ubuntu18.04onWindows_1804.2020.824.0_x64__79rhkp1fndgsc
  • CanonicalGroupLimited.Ubuntu20.04onWindows_2004.2020.812.0_x64__79rhkp1fndgsc
  • CanonicalGroupLimited.Ubuntu20.04onWindows_2004.2020.812.0_neutral_split.scale-100_79rhkp1fndgsc

Corresponds to

powershell Get-AppxPackage ^| Format-Table -Property PackageFullName
HKCR\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppModel\Repository\Packages\...

Implementations

impl PackageFullName[src]

pub fn new(pfn: impl Into<Self>) -> Self[src]

pub fn name(&self) -> &[u16][src]

Package Name

Examples

  • NcsiUwpApp
  • CanonicalGroupLimited.Ubuntu20.04onWindows

pub fn version(&self) -> &[u16][src]

Package Version

Examples

  • 1000.19041.423.0
  • 2004.2020.812.0

pub fn architecture(&self) -> &[u16][src]

Package Architecture

Examples

  • x64
  • neutral

pub fn publisher_id(&self) -> &[u16][src]

Package PublisherId

Examples

  • 8wekyb3d8bbwe
  • 79rhkp1fndgsc

impl PackageFullName[src]

pub fn display_name(&self) -> Result<String>[src]

DisplayName

pub fn os_max_version_tested(&self) -> Result<u64>[src]

OSMaxVersionTested

pub fn os_min_version(&self) -> Result<u64>[src]

OSMinVersion

pub fn package_root_folder(&self) -> Result<PathBuf>[src]

PackageRootFolder (registry) InstallLocation (powershell)

pub fn install_location(&self) -> Result<PathBuf>[src]

PackageRootFolder (registry) InstallLocation (powershell)

pub fn supported_users(&self) -> Result<u32>[src]

SupportedUsers

Methods from Deref<Target = WString>

pub fn units(&self) -> &[u16][src]

Get the code units of a UTF16-ish string, without the \0

pub fn units0(&self) -> &[u16][src]

Get the code units of a UTF16-ish string, including the \0

pub fn len(&self) -> usize[src]

Length of the string in code units, without the \0-terminator

pub fn len0(&self) -> usize[src]

Length of the string in code units, including the \0-terminator

pub fn to_os_string(&self) -> OsString[src]

Convert the UTF16-ish string into an OsString (WTF8 on windows, something messier and possibly lossy on unix)

pub fn as_ptr0(&self) -> *const u16[src]

Get a pointer to a \0-terminated buffer for this string

pub fn display<'s>(&'s self) -> impl Display + 's[src]

Make this string Display-friendly

Trait Implementations

impl Clone for PackageFullName[src]

impl Debug for PackageFullName[src]

impl Deref for PackageFullName[src]

type Target = WString

The resulting type after dereferencing.

impl Display for PackageFullName[src]

impl Eq for PackageFullName[src]

impl<'_> From<&'_ [u16]> for PackageFullName[src]

impl<'_> From<&'_ String> for PackageFullName[src]

impl<'_> From<&'_ Vec<u16>> for PackageFullName[src]

impl<'_> From<&'_ str> for PackageFullName[src]

impl From<String> for PackageFullName[src]

impl From<Vec<u16>> for PackageFullName[src]

impl Hash for PackageFullName[src]

impl Ord for PackageFullName[src]

impl PartialEq<PackageFullName> for PackageFullName[src]

impl PartialOrd<PackageFullName> for PackageFullName[src]

impl StructuralEq for PackageFullName[src]

impl StructuralPartialEq for PackageFullName[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.