pub struct NpcMessageOwned {
pub character_name: String,
pub text: String,
}
Expand description
NpcMessage
with owned String
fields.
Fields§
§character_name: String
Character name of the NPC that sent the message.
text: String
Content of the message.
Trait Implementations§
Source§impl Clone for NpcMessageOwned
impl Clone for NpcMessageOwned
Source§fn clone(&self) -> NpcMessageOwned
fn clone(&self) -> NpcMessageOwned
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 NpcMessageOwned
impl Debug for NpcMessageOwned
Source§impl<'de> Deserialize<'de> for NpcMessageOwned
impl<'de> Deserialize<'de> for NpcMessageOwned
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 From<&NpcMessage> for NpcMessageOwned
impl From<&NpcMessage> for NpcMessageOwned
Source§fn from(msg: &NpcMessage) -> Self
fn from(msg: &NpcMessage) -> Self
Converts to this type from the input type.
Source§impl From<NpcMessage> for NpcMessageOwned
impl From<NpcMessage> for NpcMessageOwned
Source§fn from(msg: NpcMessage) -> Self
fn from(msg: NpcMessage) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for NpcMessageOwned
impl RefUnwindSafe for NpcMessageOwned
impl Send for NpcMessageOwned
impl Sync for NpcMessageOwned
impl Unpin for NpcMessageOwned
impl UnwindSafe for NpcMessageOwned
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