pub struct WidgetActionEnvelope {
pub action: String,
pub payload: Option<String>,
pub ts: u64,
pub widget_id: String,
pub group: String,
}Expand description
Action delivered from a native widget back to the host app.
Fields§
§action: StringAction verb (button / toggle / list row).
payload: Option<String>Optional opaque payload string.
ts: u64Unix epoch milliseconds when the action was enqueued.
widget_id: StringWidget id that emitted the action.
group: StringApp Group / prefs group key.
Implementations§
Trait Implementations§
Source§impl Clone for WidgetActionEnvelope
impl Clone for WidgetActionEnvelope
Source§fn clone(&self) -> WidgetActionEnvelope
fn clone(&self) -> WidgetActionEnvelope
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 WidgetActionEnvelope
impl Debug for WidgetActionEnvelope
Source§impl<'de> Deserialize<'de> for WidgetActionEnvelope
impl<'de> Deserialize<'de> for WidgetActionEnvelope
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 WidgetActionEnvelope
impl RefUnwindSafe for WidgetActionEnvelope
impl Send for WidgetActionEnvelope
impl Sync for WidgetActionEnvelope
impl Unpin for WidgetActionEnvelope
impl UnsafeUnpin for WidgetActionEnvelope
impl UnwindSafe for WidgetActionEnvelope
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