pub struct SourceOrder {
pub amount: i64,
pub currency: Currency,
pub email: Option<String>,
pub items: Option<Vec<SourceOrderItem>>,
pub shipping: Option<Shipping>,
}
Fields§
§amount: i64
A positive integer in the smallest currency unit (that is, 100 cents for $1.00, or 1 for ¥1, Japanese Yen being a zero-decimal currency) representing the total amount for the order.
currency: Currency
Three-letter ISO currency code, in lowercase.
Must be a supported currency.
email: Option<String>
The email address of the customer placing the order.
items: Option<Vec<SourceOrderItem>>
List of items constituting the order.
shipping: Option<Shipping>
Trait Implementations§
source§impl Clone for SourceOrder
impl Clone for SourceOrder
source§fn clone(&self) -> SourceOrder
fn clone(&self) -> SourceOrder
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 Debug for SourceOrder
impl Debug for SourceOrder
source§impl Default for SourceOrder
impl Default for SourceOrder
source§fn default() -> SourceOrder
fn default() -> SourceOrder
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for SourceOrder
impl<'de> Deserialize<'de> for SourceOrder
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 SourceOrder
impl RefUnwindSafe for SourceOrder
impl Send for SourceOrder
impl Sync for SourceOrder
impl Unpin for SourceOrder
impl UnwindSafe for SourceOrder
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