Struct stripe::DiscountsResourceDiscountAmount
source · 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 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 Default for DiscountsResourceDiscountAmount
impl Default for DiscountsResourceDiscountAmount
source§fn default() -> DiscountsResourceDiscountAmount
fn default() -> DiscountsResourceDiscountAmount
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for DiscountsResourceDiscountAmount
impl<'de> Deserialize<'de> for DiscountsResourceDiscountAmount
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 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