stripe/model/
get_subscriptions_search_response.rs

1use serde::{Serialize, Deserialize};
2use super::Subscription;
3///
4#[derive(Debug, Clone, Serialize, Deserialize, Default)]
5pub struct GetSubscriptionsSearchResponse {
6    pub data: Vec<Subscription>,
7    pub has_more: bool,
8    #[serde(skip_serializing_if = "Option::is_none")]
9    pub next_page: Option<String>,
10    ///String representing the object's type. Objects of the same type share the same value.
11    pub object: String,
12    ///The total number of objects that match the query, only accurate up to 10,000.
13    #[serde(skip_serializing_if = "Option::is_none")]
14    pub total_count: Option<i64>,
15    pub url: String,
16}
17impl std::fmt::Display for GetSubscriptionsSearchResponse {
18    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
19        write!(f, "{}", serde_json::to_string(self).unwrap())
20    }
21}