stripe/model/
payment_pages_checkout_session_custom_fields_dropdown.rs

1use serde::{Serialize, Deserialize};
2use super::PaymentPagesCheckoutSessionCustomFieldsOption;
3///
4#[derive(Debug, Clone, Serialize, Deserialize, Default)]
5pub struct PaymentPagesCheckoutSessionCustomFieldsDropdown {
6    ///The options available for the customer to select. Up to 200 options allowed.
7    pub options: Vec<PaymentPagesCheckoutSessionCustomFieldsOption>,
8    ///The option selected by the customer. This will be the `value` for the option.
9    #[serde(skip_serializing_if = "Option::is_none")]
10    pub value: Option<String>,
11}
12impl std::fmt::Display for PaymentPagesCheckoutSessionCustomFieldsDropdown {
13    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
14        write!(f, "{}", serde_json::to_string(self).unwrap())
15    }
16}