pub struct Receipt {
pub amount_of_tomatoes: usize,
pub total_price_cents: usize,
pub phone_number: Option<String>,
}Expand description
A receipt for your purchase.
Fields§
§amount_of_tomatoes: usizeThe number of tomatoes you bought.
total_price_cents: usizeThe total price you paid for the tomatoes.
phone_number: Option<String>If the cashier really liked you, they may write their phone number on the receipt with pen.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Receipt
impl RefUnwindSafe for Receipt
impl Send for Receipt
impl Sync for Receipt
impl Unpin for Receipt
impl UnsafeUnpin for Receipt
impl UnwindSafe for Receipt
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