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.
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 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 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
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
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.