[−][src]Struct paypal_rs::orders::Breakdown
Breakdown provides details such as total item amount, total tax amount, shipping, handling, insurance, and discounts, if any.
Fields
item_total: Option<Money>
The subtotal for all items. Required if the request includes purchase_units[].items[].unit_amount. Must equal the sum of (items[].unit_amount * items[].quantity) for all items.
shipping: Option<Money>
The shipping fee for all items within a given purchase_unit.
handling: Option<Money>
The handling fee for all items within a given purchase_unit.
tax_total: Option<Money>
The total tax for all items. Required if the request includes purchase_units.items.tax. Must equal the sum of (items[].tax * items[].quantity) for all items.
insurance: Option<Money>
The insurance fee for all items within a given purchase_unit.
shipping_discount: Option<Money>
The shipping discount for all items within a given purchase_unit.
discount: Option<Money>
The discount for all items within a given purchase_unit.
Trait Implementations
impl Debug for Breakdown
[src]
impl Default for Breakdown
[src]
impl<'de> Deserialize<'de> for Breakdown
[src]
pub fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for Breakdown
[src]
Auto Trait Implementations
impl RefUnwindSafe for Breakdown
[src]
impl Send for Breakdown
[src]
impl Sync for Breakdown
[src]
impl Unpin for Breakdown
[src]
impl UnwindSafe for Breakdown
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,