Struct stripe::SourceOrder
source · [−]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
sourceimpl Clone for SourceOrder
impl Clone for SourceOrder
sourcefn clone(&self) -> SourceOrder
fn clone(&self) -> SourceOrder
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SourceOrder
impl Debug for SourceOrder
sourceimpl Default for SourceOrder
impl Default for SourceOrder
sourcefn default() -> SourceOrder
fn default() -> SourceOrder
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for SourceOrder
impl<'de> Deserialize<'de> for SourceOrder
sourcefn 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
sourceimpl Serialize for SourceOrder
impl Serialize for SourceOrder
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more