pub struct Quote {
pub quote_id: String,
pub merchant_name: String,
pub currency: String,
pub lines: Vec<Line>,
pub subtotal: i64,
pub fees: Vec<Fee>,
pub discount: i64,
pub voucher: String,
pub total: i64,
pub eta_min: Option<u32>,
pub payment_method: String,
pub address_label: String,
}Expand description
A priced checkout of the cart: what an order would cost now.
Fields§
§quote_id: StringGrab’s id for this exact checkout (items, fees, voucher, address): an order is placed only against a fresh re-quote with the same id.
merchant_name: StringThe merchant’s name.
currency: StringISO code (PHP).
lines: Vec<Line>The lines.
subtotal: i64Before fees and discounts, minor units.
fees: Vec<Fee>Delivery and other fees.
discount: i64Off the total (positive), with the voucher that gives it.
voucher: StringThe voucher(s) behind the discount.
total: i64What would be paid, minor units.
eta_min: Option<u32>Delivery estimate, minutes.
payment_method: StringHow it would be paid (Grab’s payment type).
address_label: StringWhere it goes, as a label only (“Home”).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Quote
impl<'de> Deserialize<'de> for Quote
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Quote
impl StructuralPartialEq for Quote
Auto Trait Implementations§
impl Forget for Quote
impl Freeze for Quote
impl RefUnwindSafe for Quote
impl Send for Quote
impl Sync for Quote
impl Unpin for Quote
impl UnsafeUnpin for Quote
impl UnwindSafe for Quote
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