Struct NpcMessageOwned
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§
§impl Clone for NpcMessageOwned
impl Clone for NpcMessageOwned
§fn clone(&self) -> NpcMessageOwned
fn clone(&self) -> NpcMessageOwned
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for NpcMessageOwned
impl Debug for NpcMessageOwned
§impl From<&NpcMessage> for NpcMessageOwned
impl From<&NpcMessage> for NpcMessageOwned
§fn from(msg: &NpcMessage) -> NpcMessageOwned
fn from(msg: &NpcMessage) -> NpcMessageOwned
Converts to this type from the input type.
§impl From<NpcMessage> for NpcMessageOwned
impl From<NpcMessage> for NpcMessageOwned
§fn from(msg: NpcMessage) -> NpcMessageOwned
fn from(msg: NpcMessage) -> NpcMessageOwned
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 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