pub struct PricePreviewLineItem {
pub price: Price,
pub quantity: i64,
pub tax_rate: String,
pub unit_totals: Totals,
pub formatted_unit_totals: Totals,
pub totals: Totals,
pub formatted_totals: Totals,
pub product: Product,
pub discounts: Vec<PricePreviewDiscounts>,
}
Expand description
Information about line items for this preview. Includes totals calculated by Paddle. Considered the source of truth for line item totals.
Fields§
§price: Price
Represents a price entity.
quantity: i64
Quantity of this preview line item.
tax_rate: String
Rate used to calculate tax for this preview line item.
unit_totals: Totals
Breakdown of a charge in the lowest denomination of a currency (e.g. cents for USD).
formatted_unit_totals: Totals
Breakdown of a charge in the lowest denomination of a currency (e.g. cents for USD).
totals: Totals
Breakdown of a charge in the lowest denomination of a currency (e.g. cents for USD).
formatted_totals: Totals
Breakdown of a charge in the lowest denomination of a currency (e.g. cents for USD).
product: Product
Represents a product entity.
discounts: Vec<PricePreviewDiscounts>
Trait Implementations§
Source§impl Clone for PricePreviewLineItem
impl Clone for PricePreviewLineItem
Source§fn clone(&self) -> PricePreviewLineItem
fn clone(&self) -> PricePreviewLineItem
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PricePreviewLineItem
impl Debug for PricePreviewLineItem
Source§impl<'de> Deserialize<'de> for PricePreviewLineItem
impl<'de> Deserialize<'de> for PricePreviewLineItem
Source§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 Freeze for PricePreviewLineItem
impl RefUnwindSafe for PricePreviewLineItem
impl Send for PricePreviewLineItem
impl Sync for PricePreviewLineItem
impl Unpin for PricePreviewLineItem
impl UnwindSafe for PricePreviewLineItem
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more