stripe/model/
get_payment_methods_response.rs1use serde::{Serialize, Deserialize};
2use super::PaymentMethod;
3#[derive(Debug, Clone, Serialize, Deserialize, Default)]
5pub struct GetPaymentMethodsResponse {
6 pub data: Vec<PaymentMethod>,
7 pub has_more: bool,
9 pub object: String,
11 pub url: String,
13}
14impl std::fmt::Display for GetPaymentMethodsResponse {
15 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
16 write!(f, "{}", serde_json::to_string(self).unwrap())
17 }
18}