pub struct ReceiveTextEvent {
pub from: String,
pub message: String,
pub message_localized: Option<String>,
pub channel: String,
}
Expand description
Fired when the player receives a text message.
Fields§
§from: String
The sender of the message.
message: String
The message itself. Depending on the origin of the sender this could either be the actual
displayed message or a formatted string and the actual contents of the message would then be
in message_localized
.
message_localized: Option<String>
The localized message, if possible.
channel: String
The channel the message was received on.
Trait Implementations§
Source§impl Clone for ReceiveTextEvent
impl Clone for ReceiveTextEvent
Source§fn clone(&self) -> ReceiveTextEvent
fn clone(&self) -> ReceiveTextEvent
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 ReceiveTextEvent
impl Debug for ReceiveTextEvent
Source§impl<'de> Deserialize<'de> for ReceiveTextEvent
impl<'de> Deserialize<'de> for ReceiveTextEvent
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 ReceiveTextEvent
impl PartialEq for ReceiveTextEvent
Source§impl Serialize for ReceiveTextEvent
impl Serialize for ReceiveTextEvent
impl StructuralPartialEq for ReceiveTextEvent
Auto Trait Implementations§
impl Freeze for ReceiveTextEvent
impl RefUnwindSafe for ReceiveTextEvent
impl Send for ReceiveTextEvent
impl Sync for ReceiveTextEvent
impl Unpin for ReceiveTextEvent
impl UnwindSafe for ReceiveTextEvent
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