pub struct LineItemsDiscountAmount {
pub amount: i64,
pub discount: Discount,
}
Fields§
§amount: i64
The amount discounted.
discount: Discount
Trait Implementations§
source§impl Clone for LineItemsDiscountAmount
impl Clone for LineItemsDiscountAmount
source§fn clone(&self) -> LineItemsDiscountAmount
fn clone(&self) -> LineItemsDiscountAmount
Returns a copy 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 LineItemsDiscountAmount
impl Debug for LineItemsDiscountAmount
source§impl Default for LineItemsDiscountAmount
impl Default for LineItemsDiscountAmount
source§fn default() -> LineItemsDiscountAmount
fn default() -> LineItemsDiscountAmount
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for LineItemsDiscountAmount
impl<'de> Deserialize<'de> for LineItemsDiscountAmount
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 RefUnwindSafe for LineItemsDiscountAmount
impl Send for LineItemsDiscountAmount
impl Sync for LineItemsDiscountAmount
impl Unpin for LineItemsDiscountAmount
impl UnwindSafe for LineItemsDiscountAmount
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