pub struct ShopReceipt {
pub total: u32,
pub money_after: u32,
}Expand description
Summary of a completed shop transaction.
Fields§
§total: u32Total money that changed hands (paid for buys, received for sells).
money_after: u32The player’s money after the transaction.
Trait Implementations§
Source§impl Clone for ShopReceipt
impl Clone for ShopReceipt
Source§fn clone(&self) -> ShopReceipt
fn clone(&self) -> ShopReceipt
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 moreimpl Copy for ShopReceipt
Source§impl Debug for ShopReceipt
impl Debug for ShopReceipt
impl Eq for ShopReceipt
Source§impl PartialEq for ShopReceipt
impl PartialEq for ShopReceipt
impl StructuralPartialEq for ShopReceipt
Auto Trait Implementations§
impl Freeze for ShopReceipt
impl RefUnwindSafe for ShopReceipt
impl Send for ShopReceipt
impl Sync for ShopReceipt
impl Unpin for ShopReceipt
impl UnsafeUnpin for ShopReceipt
impl UnwindSafe for ShopReceipt
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