pub struct MailMessage {
pub to_player_id: String,
pub subject: String,
pub body: String,
pub attached_currency: Option<Currency>,
pub attached_item: Option<(String, u32, u8)>,
pub sent_at: f32,
pub read: bool,
}Fields§
§to_player_id: String§subject: String§body: String§attached_currency: Option<Currency>Optional currency attached to the mail.
attached_item: Option<(String, u32, u8)>Optional item attached (item_id, quantity, quality).
sent_at: f32§read: boolImplementations§
Source§impl MailMessage
impl MailMessage
Trait Implementations§
Source§impl Clone for MailMessage
impl Clone for MailMessage
Source§fn clone(&self) -> MailMessage
fn clone(&self) -> MailMessage
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 moreAuto Trait Implementations§
impl Freeze for MailMessage
impl RefUnwindSafe for MailMessage
impl Send for MailMessage
impl Sync for MailMessage
impl Unpin for MailMessage
impl UnsafeUnpin for MailMessage
impl UnwindSafe for MailMessage
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