#[non_exhaustive]pub enum PackageType {
MacOsBundle,
IosBundle,
WindowsMsi,
Nsis,
Deb,
Rpm,
AppImage,
Dmg,
Updater,
}
Expand description
The type of the package we’re bundling.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
MacOsBundle
The macOS application bundle (.app).
IosBundle
The iOS app bundle.
WindowsMsi
The Windows bundle (.msi).
Nsis
The NSIS bundle (.exe).
Deb
The Linux Debian package bundle (.deb).
Rpm
The Linux RPM bundle (.rpm).
AppImage
The Linux AppImage bundle (.AppImage).
Dmg
The macOS DMG bundle (.dmg).
Updater
The Updater bundle.
Implementations§
Source§impl PackageType
impl PackageType
Sourcepub fn from_short_name(name: &str) -> Option<PackageType>
pub fn from_short_name(name: &str) -> Option<PackageType>
Maps a short name to a PackageType. Possible values are “deb”, “ios”, “msi”, “app”, “rpm”, “appimage”, “dmg”, “updater”.
Sourcepub fn short_name(&self) -> &'static str
pub fn short_name(&self) -> &'static str
Gets the short name of this PackageType.
Sourcepub fn all() -> &'static [PackageType]
pub fn all() -> &'static [PackageType]
Gets the list of the possible package types.
Trait Implementations§
Source§impl Clone for PackageType
impl Clone for PackageType
Source§fn clone(&self) -> PackageType
fn clone(&self) -> PackageType
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 PackageType
impl Debug for PackageType
Source§impl From<BundleType> for PackageType
impl From<BundleType> for PackageType
Source§fn from(bundle: BundleType) -> Self
fn from(bundle: BundleType) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PackageType
impl PartialEq for PackageType
impl Copy for PackageType
impl Eq for PackageType
impl StructuralPartialEq for PackageType
Auto Trait Implementations§
impl Freeze for PackageType
impl RefUnwindSafe for PackageType
impl Send for PackageType
impl Sync for PackageType
impl Unpin for PackageType
impl UnwindSafe for PackageType
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.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