Struct stripe::SourceOrder [−][src]
pub struct SourceOrder {
pub amount: i64,
pub currency: Currency,
pub email: Option<Box<String>>,
pub items: Option<Box<Vec<SourceOrderItem>>>,
pub shipping: Option<Box<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<Box<String>>
The email address of the customer placing the order.
items: Option<Box<Vec<SourceOrderItem>>>
List of items constituting the order.
shipping: Option<Box<Shipping>>
Trait Implementations
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 SourceOrder
impl Send for SourceOrder
impl Sync for SourceOrder
impl Unpin for SourceOrder
impl UnwindSafe for SourceOrder
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more