[][src]Struct appx::PackageFamilyName

pub struct PackageFamilyName(_);

e.g. NcsiUwpApp_8wekyb3d8bbwe - Refers to a family or set of appx packages/files.

This is comprised of the following underscore separated fields:

FieldExampleExample
NameNcsiUwpAppCanonicalGroupLimited.Ubuntu20.04onWindows
PublisherId8wekyb3d8bbwe79rhkp1fndgsc

To refer to specific individual packages within the set, see PackageFullName

Examples

  • NcsiUwpApp_8wekyb3d8bbwe
  • CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc
  • CanonicalGroupLimited.Ubuntu16.04onWindows_79rhkp1fndgsc
  • CanonicalGroupLimited.Ubuntu18.04onWindows_79rhkp1fndgsc
  • CanonicalGroupLimited.Ubuntu20.04onWindows_79rhkp1fndgsc

Corresponds to

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

Implementations

impl PackageFamilyName[src]

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

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

Family Name

Examples

  • NcsiUwpApp
  • CanonicalGroupLimited.Ubuntu20.04onWindows

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

Family PublisherId

Examples

  • 8wekyb3d8bbwe
  • 79rhkp1fndgsc

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 PackageFamilyName[src]

impl Debug for PackageFamilyName[src]

impl Deref for PackageFamilyName[src]

type Target = WString

The resulting type after dereferencing.

impl Display for PackageFamilyName[src]

impl Eq for PackageFamilyName[src]

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

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

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

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

impl From<String> for PackageFamilyName[src]

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

impl Hash for PackageFamilyName[src]

impl Ord for PackageFamilyName[src]

impl PartialEq<PackageFamilyName> for PackageFamilyName[src]

impl PartialOrd<PackageFamilyName> for PackageFamilyName[src]

impl StructuralEq for PackageFamilyName[src]

impl StructuralPartialEq for PackageFamilyName[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.