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§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
Source§impl PartialEq for WidgetActionEnvelope
impl PartialEq for WidgetActionEnvelope
Source§impl Serialize for WidgetActionEnvelope
impl Serialize for WidgetActionEnvelope
impl StructuralPartialEq for WidgetActionEnvelope
Auto Trait Implementations§
impl Forget for WidgetActionEnvelope
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