Struct tauri_utils::config::PackageConfig
source · pub struct PackageConfig {
pub product_name: Option<String>,
pub version: Option<String>,
}
Expand description
The package configuration.
See more: https://tauri.app/v1/api/config#packageconfig
Fields§
§product_name: Option<String>
App name.
version: Option<String>
App version. It is a semver version number or a path to a package.json
file containing the version
field. If removed the version number from Cargo.toml
is used.
Implementations§
source§impl PackageConfig
impl PackageConfig
sourcepub fn binary_name(&self) -> Option<String>
pub fn binary_name(&self) -> Option<String>
The binary name.
Trait Implementations§
source§impl Clone for PackageConfig
impl Clone for PackageConfig
source§fn clone(&self) -> PackageConfig
fn clone(&self) -> PackageConfig
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 PackageConfig
impl Debug for PackageConfig
source§impl Default for PackageConfig
impl Default for PackageConfig
source§fn default() -> PackageConfig
fn default() -> PackageConfig
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for PackageConfig
impl<'de> Deserialize<'de> for PackageConfig
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for PackageConfig
impl PartialEq for PackageConfig
source§impl Serialize for PackageConfig
impl Serialize for PackageConfig
impl Eq for PackageConfig
impl StructuralPartialEq for PackageConfig
Auto Trait Implementations§
impl Freeze for PackageConfig
impl RefUnwindSafe for PackageConfig
impl Send for PackageConfig
impl Sync for PackageConfig
impl Unpin for PackageConfig
impl UnwindSafe for PackageConfig
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.