pub struct ComponentEventPayload {
pub id: String,
pub event: String,
pub on: Option<bool>,
pub value: Option<f64>,
pub detail: Option<String>,
}Expand description
Payload of the system-components://component-event event on macOS (iOS
delivers the same shape through the plugin event channel).
Fields§
§id: String§event: Stringclick (button), change (switch/slider), or select (tab bar).
on: Option<bool>§value: Option<f64>§detail: Option<String>String payload — the chosen tab id for a tabBar select event.
Trait Implementations§
Source§impl Clone for ComponentEventPayload
impl Clone for ComponentEventPayload
Source§fn clone(&self) -> ComponentEventPayload
fn clone(&self) -> ComponentEventPayload
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 ComponentEventPayload
impl Debug for ComponentEventPayload
Source§impl<'de> Deserialize<'de> for ComponentEventPayload
impl<'de> Deserialize<'de> for ComponentEventPayload
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 ComponentEventPayload
impl RefUnwindSafe for ComponentEventPayload
impl Send for ComponentEventPayload
impl Sync for ComponentEventPayload
impl Unpin for ComponentEventPayload
impl UnsafeUnpin for ComponentEventPayload
impl UnwindSafe for ComponentEventPayload
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