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.
See more: https://tauri.app/v1/api/config#systemtrayconfig
Fields§
§icon_path: PathBuf
Path to the default icon to use on the system tray.
icon_as_template: bool
A 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 duplicate 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 for SystemTrayConfig
impl PartialEq for SystemTrayConfig
Source§impl Serialize for SystemTrayConfig
impl Serialize for SystemTrayConfig
impl Eq for SystemTrayConfig
impl StructuralPartialEq for SystemTrayConfig
Auto Trait Implementations§
impl Freeze for SystemTrayConfig
impl RefUnwindSafe for SystemTrayConfig
impl Send for SystemTrayConfig
impl Sync for SystemTrayConfig
impl Unpin for SystemTrayConfig
impl UnwindSafe for SystemTrayConfig
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