Struct tauri_utils::config::TrayIconConfig
source · pub struct TrayIconConfig {
pub id: Option<String>,
pub icon_path: PathBuf,
pub icon_as_template: bool,
pub menu_on_left_click: bool,
pub title: Option<String>,
pub tooltip: Option<String>,
}
Expand description
Configuration for application tray icon.
Fields§
§id: Option<String>
Set an id for this tray icon so you can reference it later, defaults to main
.
icon_path: PathBuf
Path to the default icon to use for the tray icon.
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
tooltip: Option<String>
Tray icon tooltip on Windows and macOS
Trait Implementations§
source§impl Clone for TrayIconConfig
impl Clone for TrayIconConfig
source§fn clone(&self) -> TrayIconConfig
fn clone(&self) -> TrayIconConfig
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 TrayIconConfig
impl Debug for TrayIconConfig
source§impl Default for TrayIconConfig
impl Default for TrayIconConfig
source§fn default() -> TrayIconConfig
fn default() -> TrayIconConfig
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for TrayIconConfig
impl<'de> Deserialize<'de> for TrayIconConfig
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 TrayIconConfig
impl PartialEq for TrayIconConfig
source§fn eq(&self, other: &TrayIconConfig) -> bool
fn eq(&self, other: &TrayIconConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for TrayIconConfig
impl Serialize for TrayIconConfig
impl Eq for TrayIconConfig
impl StructuralEq for TrayIconConfig
impl StructuralPartialEq for TrayIconConfig
Auto Trait Implementations§
impl RefUnwindSafe for TrayIconConfig
impl Send for TrayIconConfig
impl Sync for TrayIconConfig
impl Unpin for TrayIconConfig
impl UnwindSafe for TrayIconConfig
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<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.