Struct lotus_script::action::ActionEvent
source · pub struct ActionEvent {
pub name: String,
pub state: ActionState,
}
Expand description
Describes an event that is sent when an action is triggered.
Fields§
§name: String
§state: ActionState
Trait Implementations§
source§impl Clone for ActionEvent
impl Clone for ActionEvent
source§fn clone(&self) -> ActionEvent
fn clone(&self) -> ActionEvent
Returns a copy 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<ActionEvent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<ActionEvent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl MessageType for ActionEvent
impl MessageType for ActionEvent
source§const MESSAGE_META: MessageMeta = _
const MESSAGE_META: MessageMeta = _
The metadata for the message type.
source§impl PartialEq for ActionEvent
impl PartialEq for ActionEvent
source§fn eq(&self, other: &ActionEvent) -> bool
fn eq(&self, other: &ActionEvent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ActionEvent
impl Serialize for ActionEvent
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq 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 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