pub struct Action {
pub name: String,
pub surface_id: String,
pub source_component_id: String,
pub timestamp: String,
pub context: Map<String, Value>,
pub user_message: Option<String>,
}Expand description
Payload of an action message.
Fields§
§name: StringAction name, taken from the component’s action.event.name.
surface_id: StringSurface the interaction happened on.
source_component_id: StringComponent that triggered it.
timestamp: StringISO 8601 timestamp of the interaction.
context: Map<String, Value>The component’s action.event.context with all bindings resolved.
user_message: Option<String>Human-readable description of what the user did, if the component supplied one.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Action
impl<'de> Deserialize<'de> for Action
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
impl StructuralPartialEq for Action
Auto Trait Implementations§
impl Freeze for Action
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnsafeUnpin for Action
impl UnwindSafe for Action
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