pub struct MessageCustomMessage {
pub custom_message: Value,
}
Expand description
Send a custom message to be forwarded to the onExternalMessage
event handler
in the currently loaded game. The value of customMessage must be an object,
and is passed as a parameter to the event handler.
If this value is not an object then the event is not triggered.
Fields§
§custom_message: Value
Custom message that gets forwarded
Implementations§
Source§impl MessageCustomMessage
impl MessageCustomMessage
Sourcepub fn as_message(self) -> Message
pub fn as_message(self) -> Message
Returns self as Message::MessageCustomMessage
Trait Implementations§
Source§impl Debug for MessageCustomMessage
impl Debug for MessageCustomMessage
Source§impl Serialize for MessageCustomMessage
impl Serialize for MessageCustomMessage
Auto Trait Implementations§
impl Freeze for MessageCustomMessage
impl RefUnwindSafe for MessageCustomMessage
impl Send for MessageCustomMessage
impl Sync for MessageCustomMessage
impl Unpin for MessageCustomMessage
impl UnwindSafe for MessageCustomMessage
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