pub struct DiscountsResourceDiscountAmount {
pub amount: i64,
pub discount: Expandable<Discount>,
}
Fields§
§amount: i64
The amount, in cents (or local equivalent), of the discount.
discount: Expandable<Discount>
The discount that was applied to get this discount amount.
Trait Implementations§
Source§impl Clone for DiscountsResourceDiscountAmount
impl Clone for DiscountsResourceDiscountAmount
Source§fn clone(&self) -> DiscountsResourceDiscountAmount
fn clone(&self) -> DiscountsResourceDiscountAmount
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 FromValueOpt for DiscountsResourceDiscountAmount
impl FromValueOpt for DiscountsResourceDiscountAmount
fn from_value(v: Value) -> Option<Self>
Auto Trait Implementations§
impl Freeze for DiscountsResourceDiscountAmount
impl RefUnwindSafe for DiscountsResourceDiscountAmount
impl Send for DiscountsResourceDiscountAmount
impl Sync for DiscountsResourceDiscountAmount
impl Unpin for DiscountsResourceDiscountAmount
impl UnwindSafe for DiscountsResourceDiscountAmount
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