stripe/model/
invoice_line_item_period.rs

1use serde::{Serialize, Deserialize};
2///
3#[derive(Debug, Clone, Serialize, Deserialize, Default)]
4pub struct InvoiceLineItemPeriod {
5    ///The end of the period, which must be greater than or equal to the start. This value is inclusive.
6    pub end: i64,
7    ///The start of the period. This value is inclusive.
8    pub start: i64,
9}
10impl std::fmt::Display for InvoiceLineItemPeriod {
11    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
12        write!(f, "{}", serde_json::to_string(self).unwrap())
13    }
14}