Struct tauri_utils::config::SystemTrayConfig
source · [−]pub struct SystemTrayConfig {
pub icon_path: PathBuf,
pub icon_as_template: bool,
pub menu_on_left_click: bool,
}
Expand description
Configuration for application system tray icon.
Fields
icon_path: PathBuf
Path to the icon to use on the system tray.
It is forced to be a .png
file on Linux and macOS, and a .ico
file on Windows.
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.
Trait Implementations
sourceimpl Clone for SystemTrayConfig
impl Clone for SystemTrayConfig
sourcefn clone(&self) -> SystemTrayConfig
fn clone(&self) -> SystemTrayConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SystemTrayConfig
impl Debug for SystemTrayConfig
sourceimpl Default for SystemTrayConfig
impl Default for SystemTrayConfig
sourcefn default() -> SystemTrayConfig
fn default() -> SystemTrayConfig
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for SystemTrayConfig
impl<'de> Deserialize<'de> for SystemTrayConfig
sourcefn 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
sourceimpl PartialEq<SystemTrayConfig> for SystemTrayConfig
impl PartialEq<SystemTrayConfig> for SystemTrayConfig
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &SystemTrayConfig) -> bool
fn ne(&self, other: &SystemTrayConfig) -> bool
This method tests for !=
.
sourceimpl Serialize for SystemTrayConfig
impl Serialize for SystemTrayConfig
impl Eq for SystemTrayConfig
impl StructuralEq for SystemTrayConfig
impl StructuralPartialEq for SystemTrayConfig
Auto Trait Implementations
impl RefUnwindSafe for SystemTrayConfig
impl Send for SystemTrayConfig
impl Sync for SystemTrayConfig
impl Unpin for SystemTrayConfig
impl UnwindSafe for SystemTrayConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more