stripe/model/
external_account_list.rs

1use serde::{Serialize, Deserialize};
2///
3#[derive(Debug, Clone, Serialize, Deserialize, Default)]
4pub struct ExternalAccountList {
5    ///The list contains all external accounts that have been attached to the Stripe account. These may be bank accounts or cards.
6    pub data: Vec<serde_json::Value>,
7    ///True if this list has another page of items after this one that can be fetched.
8    pub has_more: bool,
9    ///String representing the object's type. Objects of the same type share the same value. Always has the value `list`.
10    pub object: String,
11    ///The URL where this list can be accessed.
12    pub url: String,
13}
14impl std::fmt::Display for ExternalAccountList {
15    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
16        write!(f, "{}", serde_json::to_string(self).unwrap())
17    }
18}