pub struct ActionMessage {
pub name: String,
pub surface_id: String,
pub source_component_id: String,
pub timestamp: String,
pub context: Map<String, Value>,
}Expand description
动作消息(用户交互触发)
Fields§
§name: String事件名称
surface_id: StringSurface ID
source_component_id: String触发事件的组件 ID
timestamp: StringISO 8601 时间戳
context: Map<String, Value>事件上下文
Trait Implementations§
Source§impl Clone for ActionMessage
impl Clone for ActionMessage
Source§fn clone(&self) -> ActionMessage
fn clone(&self) -> ActionMessage
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 ActionMessage
impl Debug for ActionMessage
Source§impl<'de> Deserialize<'de> for ActionMessage
impl<'de> Deserialize<'de> for ActionMessage
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 ActionMessage
impl PartialEq for ActionMessage
Source§impl Serialize for ActionMessage
impl Serialize for ActionMessage
impl StructuralPartialEq for ActionMessage
Auto Trait Implementations§
impl Freeze for ActionMessage
impl RefUnwindSafe for ActionMessage
impl Send for ActionMessage
impl Sync for ActionMessage
impl Unpin for ActionMessage
impl UnsafeUnpin for ActionMessage
impl UnwindSafe for ActionMessage
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