Struct fizyr_rpc::interface_example::Receipt
source · 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: usize
The number of tomatoes you bought.
total_price_cents: usize
The 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 RefUnwindSafe for Receipt
impl Send for Receipt
impl Sync for Receipt
impl Unpin 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