Struct stripe::SourceOrderItem [−][src]
pub struct SourceOrderItem {
pub amount: Option<Box<i64>>,
pub currency: Option<Currency>,
pub description: Option<Box<String>>,
pub parent: Option<Box<String>>,
pub quantity: Option<Box<u64>>,
pub type_: Option<Box<String>>,
}
Fields
amount: Option<Box<i64>>
The amount (price) for this order item.
currency: Option<Currency>
This currency of this order item.
Required when amount
is present.
description: Option<Box<String>>
Human-readable description for this order item.
parent: Option<Box<String>>
The ID of the associated object for this line item.
Expandable if not null (e.g., expandable to a SKU).
quantity: Option<Box<u64>>
The quantity of this order item.
When type is sku
, this is the number of instances of the SKU to be ordered.
type_: Option<Box<String>>
The type of this order item.
Must be sku
, tax
, or 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 SourceOrderItem
impl Send for SourceOrderItem
impl Sync for SourceOrderItem
impl Unpin for SourceOrderItem
impl UnwindSafe for SourceOrderItem
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