stripe/model/
payment_pages_checkout_session_custom_fields_label.rs

1use serde::{Serialize, Deserialize};
2///
3#[derive(Debug, Clone, Serialize, Deserialize, Default)]
4pub struct PaymentPagesCheckoutSessionCustomFieldsLabel {
5    ///Custom text for the label, displayed to the customer. Up to 50 characters.
6    #[serde(skip_serializing_if = "Option::is_none")]
7    pub custom: Option<String>,
8    ///The type of the label.
9    #[serde(rename = "type")]
10    pub type_: String,
11}
12impl std::fmt::Display for PaymentPagesCheckoutSessionCustomFieldsLabel {
13    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
14        write!(f, "{}", serde_json::to_string(self).unwrap())
15    }
16}