pub struct ActionEvent {
pub name: String,
pub context: HashMap<String, DynamicValue>,
pub want_response: bool,
pub response_path: Option<String>,
}Expand description
A server-bound event with optional context.
Fields§
§name: String§context: HashMap<String, DynamicValue>§want_response: bool§response_path: Option<String>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 (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 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
Source§impl PartialEq for ActionEvent
impl PartialEq for ActionEvent
Source§fn eq(&self, other: &ActionEvent) -> bool
fn eq(&self, other: &ActionEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ActionEvent
impl Serialize for ActionEvent
impl StructuralPartialEq for ActionEvent
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