pub struct CreateCheckoutSessionCustomFields {
pub dropdown: Option<CreateCheckoutSessionCustomFieldsDropdown>,
pub key: String,
pub label: CreateCheckoutSessionCustomFieldsLabel,
pub optional: Option<bool>,
pub type_: CreateCheckoutSessionCustomFieldsType,
}Fields§
§dropdown: Option<CreateCheckoutSessionCustomFieldsDropdown>Configuration for type=dropdown fields.
key: StringString of your choice that your integration can use to reconcile this field.
Must be unique to this field, alphanumeric, and up to 200 characters.
label: CreateCheckoutSessionCustomFieldsLabelThe label for the field, displayed to the customer.
optional: Option<bool>Whether the customer is required to complete the field before completing the Checkout Session.
Defaults to false.
type_: CreateCheckoutSessionCustomFieldsTypeThe type of the field.
Trait Implementations§
source§impl Clone for CreateCheckoutSessionCustomFields
impl Clone for CreateCheckoutSessionCustomFields
source§fn clone(&self) -> CreateCheckoutSessionCustomFields
fn clone(&self) -> CreateCheckoutSessionCustomFields
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Default for CreateCheckoutSessionCustomFields
impl Default for CreateCheckoutSessionCustomFields
source§fn default() -> CreateCheckoutSessionCustomFields
fn default() -> CreateCheckoutSessionCustomFields
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for CreateCheckoutSessionCustomFields
impl<'de> Deserialize<'de> for CreateCheckoutSessionCustomFields
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more