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.
See more: https://tauri.app/v1/api/config#tauriconfig
Fields§
§pattern: PatternKind
The pattern to use.
windows: Vec<WindowConfig>
The windows configuration.
cli: Option<CliConfig>
The CLI configuration.
bundle: BundleConfig
The bundler configuration.
allowlist: AllowlistConfig
The allowlist configuration.
security: SecurityConfig
Security configuration.
updater: UpdaterConfig
The updater configuration.
system_tray: Option<SystemTrayConfig>
Configuration for app system tray.
macos_private_api: bool
MacOS private API configuration. Enables the transparent background API and sets the fullScreenEnabled
preference to true
.
Implementations§
Trait Implementations§
source§impl Clone for TauriConfig
impl Clone for TauriConfig
source§fn clone(&self) -> TauriConfig
fn clone(&self) -> TauriConfig
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 TauriConfig
impl Debug for TauriConfig
source§impl Default for TauriConfig
impl Default for TauriConfig
source§fn default() -> TauriConfig
fn default() -> TauriConfig
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for TauriConfig
impl<'de> Deserialize<'de> for TauriConfig
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 TauriConfig
impl PartialEq for TauriConfig
source§impl Serialize for TauriConfig
impl Serialize for TauriConfig
impl StructuralPartialEq for TauriConfig
Auto Trait Implementations§
impl Freeze for TauriConfig
impl RefUnwindSafe for TauriConfig
impl Send for TauriConfig
impl Sync for TauriConfig
impl Unpin for TauriConfig
impl UnwindSafe for TauriConfig
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
)