pub struct PricePreviewDiscounts {
pub discount: Discount,
pub total: String,
pub formatted_total: String,
}
Expand description
Array of discounts applied to this preview line item. Empty if no discounts applied.
Fields§
§discount: Discount
Represents a discount entity.
total: String
Total amount discounted as a result of this discount.
formatted_total: String
Total amount discounted as a result of this discount in the format of a given currency. ’
Trait Implementations§
Source§impl Clone for PricePreviewDiscounts
impl Clone for PricePreviewDiscounts
Source§fn clone(&self) -> PricePreviewDiscounts
fn clone(&self) -> PricePreviewDiscounts
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 PricePreviewDiscounts
impl Debug for PricePreviewDiscounts
Source§impl<'de> Deserialize<'de> for PricePreviewDiscounts
impl<'de> Deserialize<'de> for PricePreviewDiscounts
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 PricePreviewDiscounts
impl RefUnwindSafe for PricePreviewDiscounts
impl Send for PricePreviewDiscounts
impl Sync for PricePreviewDiscounts
impl Unpin for PricePreviewDiscounts
impl UnwindSafe for PricePreviewDiscounts
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