pub struct NpcMessageInfo<'a> {
pub character_name: &'a str,
pub message: &'a str,
pub timestamp: DateTime<Utc>,
}Fields§
§character_name: &'a strNull terminated character name of the NPC or the player character. The string is only valid for the duration of the call.
message: &'a strNull terminated string of the message said by an npc or the user character. The string is only valid for the duration of the call.
timestamp: DateTime<Utc>Time since epoch in nanoseconds. This can be used to sort messages, when they are out of order.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for NpcMessageInfo<'a>
impl<'a> RefUnwindSafe for NpcMessageInfo<'a>
impl<'a> Send for NpcMessageInfo<'a>
impl<'a> Sync for NpcMessageInfo<'a>
impl<'a> Unpin for NpcMessageInfo<'a>
impl<'a> UnwindSafe for NpcMessageInfo<'a>
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