pub struct ActionEvent {
pub action_id: String,
pub thread_id: String,
pub message_id: String,
pub user: Author,
pub value: Option<String>,
pub trigger_id: Option<String>,
pub adapter_name: String,
}Expand description
An interactive element (button, menu, etc.) was activated by a user.
Fields§
§action_id: StringIdentifier of the action element that was triggered.
thread_id: StringThread where the action originated.
message_id: StringMessage containing the interactive element.
user: AuthorThe user who performed the action.
value: Option<String>Optional value associated with the action element.
trigger_id: Option<String>Trigger identifier for opening modals or other follow-ups.
adapter_name: StringName of the adapter that delivered this event.
Trait Implementations§
Source§impl Clone for ActionEvent
impl Clone for ActionEvent
Source§fn clone(&self) -> ActionEvent
fn clone(&self) -> ActionEvent
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 ActionEvent
impl Debug for ActionEvent
Source§impl<'de> Deserialize<'de> for ActionEvent
impl<'de> Deserialize<'de> for ActionEvent
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 ActionEvent
impl RefUnwindSafe for ActionEvent
impl Send for ActionEvent
impl Sync for ActionEvent
impl Unpin for ActionEvent
impl UnsafeUnpin for ActionEvent
impl UnwindSafe for ActionEvent
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