pub struct TrayItemSelected {
pub id: String,
}Expand description
A product-provided tray menu item was selected (G10).
The host does not call product code: it publishes this, and the module that owns
the menu reacts. id is exactly the string the product passed to
TrayService::set_menu, so a renamed menu entry stays a compile-time concern on
the product side.
Fields§
§id: StringTrait Implementations§
Source§impl Clone for TrayItemSelected
impl Clone for TrayItemSelected
Source§fn clone(&self) -> TrayItemSelected
fn clone(&self) -> TrayItemSelected
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TrayItemSelected
impl Debug for TrayItemSelected
Source§impl<'de> Deserialize<'de> for TrayItemSelected
impl<'de> Deserialize<'de> for TrayItemSelected
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
Auto Trait Implementations§
impl Freeze for TrayItemSelected
impl RefUnwindSafe for TrayItemSelected
impl Send for TrayItemSelected
impl Sync for TrayItemSelected
impl Unpin for TrayItemSelected
impl UnsafeUnpin for TrayItemSelected
impl UnwindSafe for TrayItemSelected
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