Struct tauri_utils::config::TauriConfig
source · [−]pub struct TauriConfig {
pub pattern: PatternKind,
pub windows: Vec<WindowConfig>,
pub cli: Option<CliConfig>,
pub bundle: BundleConfig,
pub allowlist: AllowlistConfig,
pub security: SecurityConfig,
pub updater: UpdaterConfig,
pub system_tray: Option<SystemTrayConfig>,
pub macos_private_api: bool,
}Expand description
The Tauri configuration object.
Fields
pattern: PatternKindThe pattern to use.
windows: Vec<WindowConfig>The windows configuration.
cli: Option<CliConfig>The CLI configuration.
bundle: BundleConfigThe bundler configuration.
allowlist: AllowlistConfigThe allowlist configuration.
security: SecurityConfigSecurity configuration.
updater: UpdaterConfigThe updater configuration.
system_tray: Option<SystemTrayConfig>Configuration for app system tray.
macos_private_api: boolMacOS private API configuration. Enables the transparent background API and sets the fullScreenEnabled preference to true.
Implementations
sourceimpl TauriConfig
impl TauriConfig
Trait Implementations
sourceimpl Clone for TauriConfig
impl Clone for TauriConfig
sourcefn clone(&self) -> TauriConfig
fn clone(&self) -> TauriConfig
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 TauriConfig
impl Debug for TauriConfig
sourceimpl Default for TauriConfig
impl Default for TauriConfig
sourcefn default() -> TauriConfig
fn default() -> TauriConfig
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for TauriConfig
impl<'de> Deserialize<'de> for TauriConfig
sourcefn 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
sourceimpl PartialEq<TauriConfig> for TauriConfig
impl PartialEq<TauriConfig> for TauriConfig
sourcefn eq(&self, other: &TauriConfig) -> bool
fn eq(&self, other: &TauriConfig) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &TauriConfig) -> bool
fn ne(&self, other: &TauriConfig) -> bool
This method tests for !=.
sourceimpl Serialize for TauriConfig
impl Serialize for TauriConfig
impl StructuralPartialEq for TauriConfig
Auto Trait Implementations
impl RefUnwindSafe for TauriConfig
impl Send for TauriConfig
impl Sync for TauriConfig
impl Unpin for TauriConfig
impl UnwindSafe for TauriConfig
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
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