stripe/model/
discounts_resource_discount_amount.rs

1use serde::{Serialize, Deserialize};
2///
3#[derive(Debug, Clone, Serialize, Deserialize, Default)]
4pub struct DiscountsResourceDiscountAmount {
5    ///The amount, in cents (or local equivalent), of the discount.
6    pub amount: i64,
7    ///The discount that was applied to get this discount amount.
8    pub discount: serde_json::Value,
9}
10impl std::fmt::Display for DiscountsResourceDiscountAmount {
11    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
12        write!(f, "{}", serde_json::to_string(self).unwrap())
13    }
14}