pub struct PriceDetail {
pub currency_code: Option<String>,
pub discount_price: Option<i64>,
pub original_price: Option<i64>,
pub voucher_discount: Option<i64>,
pub discount_percentage: Option<i64>,
pub currency_info: Option<PriceCurrencyInfo>,
pub fmt_price: Option<FormattedPrice>,
}Expand description
Breakdown of a price entry.
Fields§
§currency_code: Option<String>§discount_price: Option<i64>§original_price: Option<i64>§voucher_discount: Option<i64>§discount_percentage: Option<i64>§currency_info: Option<PriceCurrencyInfo>§fmt_price: Option<FormattedPrice>Trait Implementations§
Source§impl Clone for PriceDetail
impl Clone for PriceDetail
Source§fn clone(&self) -> PriceDetail
fn clone(&self) -> PriceDetail
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 PriceDetail
impl Debug for PriceDetail
Source§impl Default for PriceDetail
impl Default for PriceDetail
Source§fn default() -> PriceDetail
fn default() -> PriceDetail
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PriceDetail
impl<'de> Deserialize<'de> for PriceDetail
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
Source§impl PartialEq for PriceDetail
impl PartialEq for PriceDetail
Source§impl Serialize for PriceDetail
impl Serialize for PriceDetail
impl StructuralPartialEq for PriceDetail
Auto Trait Implementations§
impl Freeze for PriceDetail
impl RefUnwindSafe for PriceDetail
impl Send for PriceDetail
impl Sync for PriceDetail
impl Unpin for PriceDetail
impl UnwindSafe for PriceDetail
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