pub struct Order {
pub order_number: Option<String>,
pub merchant: Option<String>,
pub order_date: Option<String>,
pub status: Option<String>,
pub items: Vec<OrderItem>,
pub total: Option<String>,
pub currency: Option<String>,
}Expand description
One e-commerce order / receipt.
Fields§
§order_number: Option<String>Merchant-assigned order number.
merchant: Option<String>Merchant / seller name.
order_date: Option<String>ISO-8601 date the order was placed.
status: Option<String>Status string (placed / shipped / delivered / …).
items: Vec<OrderItem>Line items.
total: Option<String>Total amount as a string (no parsing — keep original currency formatting).
currency: Option<String>Currency code (ISO 4217).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Order
impl<'de> Deserialize<'de> for Order
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
Auto Trait Implementations§
impl Freeze for Order
impl RefUnwindSafe for Order
impl Send for Order
impl Sync for Order
impl Unpin for Order
impl UnsafeUnpin for Order
impl UnwindSafe for Order
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