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 duplicate 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 Deserialize for SourceOrder
impl Deserialize for SourceOrder
Source§impl FromValueOpt for SourceOrder
impl FromValueOpt for SourceOrder
fn from_value(v: Value) -> Option<Self>
Source§impl ObjectDeser for SourceOrder
impl ObjectDeser for SourceOrder
type Builder = SourceOrderBuilder
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