pub struct NpcMessageOwned {
pub character_name: String,
pub text: String,
}Expand description
NpcMessage with owned String fields.
Fields§
§character_name: StringCharacter name of the NPC that sent the message.
text: StringContent 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 duplicate 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<NpcMessageOwned, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<NpcMessageOwned, <__D as Deserializer<'de>>::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) -> NpcMessageOwned
fn from(msg: &NpcMessage) -> NpcMessageOwned
Converts to this type from the input type.
Source§impl From<NpcMessage> for NpcMessageOwned
impl From<NpcMessage> for NpcMessageOwned
Source§fn from(msg: NpcMessage) -> NpcMessageOwned
fn from(msg: NpcMessage) -> NpcMessageOwned
Converts to this type from the input type.
Source§impl Serialize for NpcMessageOwned
impl Serialize for NpcMessageOwned
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
Auto Trait Implementations§
impl Freeze for NpcMessageOwned
impl RefUnwindSafe for NpcMessageOwned
impl Send for NpcMessageOwned
impl Sync for NpcMessageOwned
impl Unpin for NpcMessageOwned
impl UnsafeUnpin 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