pub struct SystemTrayConfig {
pub icon_path: PathBuf,
pub icon_as_template: bool,
}
Expand description
Configuration for application system tray icon.
Fields§
§icon_path: PathBuf
Path to the icon to use on the system tray.
Automatically set to be an .png
on macOS and Linux, and .ico
on Windows.
icon_as_template: bool
A Boolean value that determines whether the image represents a template image on macOS.
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
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