pub struct LabeledPricePart {
pub label: String,
pub amount: i64,
}
Expand description
Portion of the price of a product (e.g., “delivery cost”, “tax amount”)
Fields§
§label: String
Label for this portion of the product price
amount: i64
Currency amount in minimal quantity of the currency
Trait Implementations§
Source§impl Clone for LabeledPricePart
impl Clone for LabeledPricePart
Source§fn clone(&self) -> LabeledPricePart
fn clone(&self) -> LabeledPricePart
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 LabeledPricePart
impl Debug for LabeledPricePart
Source§impl<'de> Deserialize<'de> for LabeledPricePart
impl<'de> Deserialize<'de> for LabeledPricePart
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 LabeledPricePart
impl RefUnwindSafe for LabeledPricePart
impl Send for LabeledPricePart
impl Sync for LabeledPricePart
impl Unpin for LabeledPricePart
impl UnwindSafe for LabeledPricePart
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