stripe/model/
payment_pages_checkout_session_shipping_option.rs

1use serde::{Serialize, Deserialize};
2///
3#[derive(Debug, Clone, Serialize, Deserialize, Default)]
4pub struct PaymentPagesCheckoutSessionShippingOption {
5    ///A non-negative integer in cents representing how much to charge.
6    pub shipping_amount: i64,
7    ///The shipping rate.
8    pub shipping_rate: serde_json::Value,
9}
10impl std::fmt::Display for PaymentPagesCheckoutSessionShippingOption {
11    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
12        write!(f, "{}", serde_json::to_string(self).unwrap())
13    }
14}