Struct tauri_bundler::bundle::Settings[][src]

pub struct Settings { /* fields omitted */ }
Expand description

The Settings exposed by the module.

Implementations

impl Settings[src]

pub fn project_out_directory(&self) -> &Path[src]

Returns the directory where the bundle should be placed.

pub fn binary_arch(&self) -> &str[src]

Returns the architecture for the binary being bundled (e.g. “arm”, “x86” or “x86_64”).

pub fn main_binary_name(&self) -> &str[src]

Returns the file name of the binary being bundled.

pub fn binary_path(&self, binary: &BundleBinary) -> PathBuf[src]

Returns the path to the specified binary.

pub fn binaries(&self) -> &Vec<BundleBinary>[src]

Returns the list of binaries to bundle.

pub fn package_types(&self) -> Result<Vec<PackageType>>[src]

If a list of package types was specified by the command-line, returns that list filtered by the current target OS available targets.

If a target triple was specified by the command-line, returns the native package type(s) for that target.

Otherwise returns the native package type(s) for the host platform.

Fails if the host/target’s native package type is not supported.

pub fn is_verbose(&self) -> bool[src]

Returns true if verbose logging is enabled

pub fn product_name(&self) -> &str[src]

Returns the product name.

pub fn bundle_identifier(&self) -> &str[src]

Returns the bundle’s identifier

pub fn icon_files(&self) -> ResourcePaths<'_>[src]

Returns an iterator over the icon files to be used for this bundle.

pub fn resource_files(&self) -> ResourcePaths<'_>[src]

Returns an iterator over the resource files to be included in this bundle.

pub fn external_binaries(&self) -> ResourcePaths<'_>[src]

Returns an iterator over the external binaries to be included in this bundle.

pub fn copy_binaries(&self, path: &Path) -> Result<()>[src]

Copies external binaries to a path.

pub fn copy_resources(&self, path: &Path) -> Result<()>[src]

Copies resources to a path.

pub fn version_string(&self) -> &str[src]

Returns the version string of the bundle.

pub fn copyright_string(&self) -> Option<&str>[src]

Returns the copyright text.

pub fn author_names(&self) -> &[String][src]

Returns the list of authors name.

pub fn authors_comma_separated(&self) -> Option<String>[src]

Returns the authors as a comma-separated string.

pub fn homepage_url(&self) -> &str[src]

Returns the package’s homepage URL, defaulting to “” if not defined.

pub fn app_category(&self) -> Option<AppCategory>[src]

Returns the app’s category.

pub fn short_description(&self) -> &str[src]

Returns the app’s short description.

pub fn long_description(&self) -> Option<&str>[src]

Returns the app’s long description.

pub fn deb(&self) -> &DebianSettings[src]

Returns the debian settings.

pub fn macos(&self) -> &MacOsSettings[src]

Returns the MacOS settings.

pub fn windows(&self) -> &WindowsSettings[src]

Returns the Windows settings.

pub fn is_update_enabled(&self) -> bool[src]

Is update enabled

pub fn is_updater_pubkey(&self) -> bool[src]

Is pubkey provided?

Trait Implementations

impl Clone for Settings[src]

fn clone(&self) -> Settings[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for Settings[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

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

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> Pointable for T

pub const ALIGN: usize

The alignment of pointer.

type Init = T

The type for initializers.

pub unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more

pub unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more

pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more

pub unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more

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

type Owned = T

The resulting type after obtaining ownership.

pub fn to_owned(&self) -> T[src]

Creates owned data from borrowed data, usually by cloning. Read more

pub fn clone_into(&self, target: &mut T)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.