pub struct AppConfig {
pub windows: Vec<WindowConfig>,
pub security: SecurityConfig,
pub tray_icon: Option<TrayIconConfig>,
pub macos_private_api: bool,
pub with_global_tauri: bool,
pub enable_gtk_app_id: bool,
}
Expand description
The App configuration object.
Fields§
§windows: Vec<WindowConfig>
The app windows configuration.
security: SecurityConfig
Security configuration.
tray_icon: Option<TrayIconConfig>
Configuration for app tray icon.
macos_private_api: bool
MacOS private API configuration. Enables the transparent background API and sets the fullScreenEnabled
preference to true
.
with_global_tauri: bool
Whether we should inject the Tauri API on window.__TAURI__
or not.
enable_gtk_app_id: bool
If set to true “identifier” will be set as GTK app ID (on systems that use GTK).
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AppConfig
impl<'de> Deserialize<'de> for AppConfig
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
impl StructuralPartialEq for AppConfig
Auto Trait Implementations§
impl Freeze for AppConfig
impl RefUnwindSafe for AppConfig
impl Send for AppConfig
impl Sync for AppConfig
impl Unpin for AppConfig
impl UnwindSafe for AppConfig
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
)