[−][src]Struct paypal_rs::invoice::Breakdown
The breakdown of the amount. Breakdown provides details such as total item amount, total tax amount, custom amount, shipping and discounts, if any.
Fields
item_total: Option<Money>
The subtotal for all items. Must equal the sum of (items[].unit_amount * items[].quantity) for all items.
discount: Option<AggregatedDiscount>
The discount can be at the item or invoice level, or both. Can be applied as a percent or amount. If you provide both amount and percent, amount takes precedent.
tax_total: Option<Money>
The aggregated amount of the item and shipping taxes.
shipping: Option<ShippingCost>
The shipping fee for all items. Includes tax on shipping.
custom: Option<CustomAmount>
The custom amount to apply to an invoice. If you include a label, you must include the custom amount.
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>,