Enum tauri_bundler::bundle::PackageType
source · [−]#[non_exhaustive]
pub enum PackageType {
MacOsBundle,
IosBundle,
WindowsMsi,
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
MacOsBundle
The macOS application bundle (.app).
IosBundle
The iOS app bundle.
WindowsMsi
The Windows bundle (.msi).
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
sourceimpl 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
sourceimpl Clone for PackageType
impl Clone for PackageType
sourcefn clone(&self) -> PackageType
fn clone(&self) -> PackageType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PackageType
impl Debug for PackageType
sourceimpl PartialEq<PackageType> for PackageType
impl PartialEq<PackageType> for PackageType
impl Copy for PackageType
impl Eq for PackageType
impl StructuralEq for PackageType
impl StructuralPartialEq for PackageType
Auto Trait Implementations
impl RefUnwindSafe for PackageType
impl Send for PackageType
impl Sync for PackageType
impl Unpin for PackageType
impl UnwindSafe for PackageType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more