Struct tauri_utils::config::SystemTrayConfig
source · pub struct SystemTrayConfig {
pub icon_path: PathBuf,
pub icon_as_template: bool,
pub menu_on_left_click: bool,
pub title: Option<String>,
}Expand description
Configuration for application system tray icon.
Fields§
§icon_path: PathBufPath to the default icon to use on the system tray.
icon_as_template: boolA Boolean value that determines whether the image represents a template image on macOS.
A Boolean value that determines whether the menu should appear when the tray icon receives a left click on macOS.
title: Option<String>Title for MacOS tray
Trait Implementations§
source§impl Clone for SystemTrayConfig
impl Clone for SystemTrayConfig
source§fn clone(&self) -> SystemTrayConfig
fn clone(&self) -> SystemTrayConfig
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 SystemTrayConfig
impl Debug for SystemTrayConfig
source§impl Default for SystemTrayConfig
impl Default for SystemTrayConfig
source§fn default() -> SystemTrayConfig
fn default() -> SystemTrayConfig
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for SystemTrayConfig
impl<'de> Deserialize<'de> for SystemTrayConfig
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<SystemTrayConfig> for SystemTrayConfig
impl PartialEq<SystemTrayConfig> for SystemTrayConfig
source§fn eq(&self, other: &SystemTrayConfig) -> bool
fn eq(&self, other: &SystemTrayConfig) -> bool
This method tests for
self and other values to be equal, and is used
by ==.