pub struct TerminalReaderReaderResourceCart {
pub currency: Currency,
pub line_items: Vec<TerminalReaderReaderResourceLineItem>,
pub tax: Option<i64>,
pub total: i64,
}
Fields§
§currency: Currency
Three-letter ISO currency code, in lowercase.
Must be a supported currency.
line_items: Vec<TerminalReaderReaderResourceLineItem>
List of line items in the cart.
tax: Option<i64>
Tax amount for the entire cart.
A positive integer in the smallest currency unit.
total: i64
Total amount for the entire cart, including tax.
A positive integer in the smallest currency unit.
Trait Implementations§
source§impl Clone for TerminalReaderReaderResourceCart
impl Clone for TerminalReaderReaderResourceCart
source§fn clone(&self) -> TerminalReaderReaderResourceCart
fn clone(&self) -> TerminalReaderReaderResourceCart
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for TerminalReaderReaderResourceCart
impl Default for TerminalReaderReaderResourceCart
source§fn default() -> TerminalReaderReaderResourceCart
fn default() -> TerminalReaderReaderResourceCart
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for TerminalReaderReaderResourceCart
impl<'de> Deserialize<'de> for TerminalReaderReaderResourceCart
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 RefUnwindSafe for TerminalReaderReaderResourceCart
impl Send for TerminalReaderReaderResourceCart
impl Sync for TerminalReaderReaderResourceCart
impl Unpin for TerminalReaderReaderResourceCart
impl UnwindSafe for TerminalReaderReaderResourceCart
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