pub struct LineItemDiscount {
pub line_item_id: String,
pub promotion_id: PromotionId,
pub original_price: Decimal,
pub discount_amount: Decimal,
pub final_price: Decimal,
}Expand description
Discount applied to a specific line item
Fields§
§line_item_id: String§promotion_id: PromotionId§original_price: Decimal§discount_amount: Decimal§final_price: DecimalTrait Implementations§
Source§impl Clone for LineItemDiscount
impl Clone for LineItemDiscount
Source§fn clone(&self) -> LineItemDiscount
fn clone(&self) -> LineItemDiscount
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LineItemDiscount
impl Debug for LineItemDiscount
Source§impl<'de> Deserialize<'de> for LineItemDiscount
impl<'de> Deserialize<'de> for LineItemDiscount
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<LineItemDiscount, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<LineItemDiscount, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for LineItemDiscount
impl Serialize for LineItemDiscount
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for LineItemDiscount
impl RefUnwindSafe for LineItemDiscount
impl Send for LineItemDiscount
impl Sync for LineItemDiscount
impl Unpin for LineItemDiscount
impl UnsafeUnpin for LineItemDiscount
impl UnwindSafe for LineItemDiscount
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