squareup/models/
create_customer_custom_attribute_definition_request.rs

1//! Model struct for CreateCustomerCustomAttributeDefinitionRequest type
2
3use super::CustomAttributeDefinition;
4use serde::Serialize;
5
6/// This is a model struct for CreateCustomerCustomAttributeDefinitionRequest type
7#[derive(Clone, Debug, Serialize, Eq, PartialEq)]
8pub struct CreateCustomerCustomAttributeDefinitionRequest {
9    /// The custom attribute definition to create.
10    /// Note: `name` must be unique (case-sensitive) across all visible customer-related custom attribute definitions for the seller.
11    pub custom_attribute_definition: CustomAttributeDefinition,
12    /// A unique identifier for this request, used to ensure idempotency.
13    /// Max length: 45 characters.
14    pub idempotency_key: Option<String>,
15}