square_api_client/models/catalog_item_option.rs
1//! Model struct for CatalogItemOption type.
2
3use serde::{Deserialize, Serialize};
4
5use super::CatalogObject;
6
7/// A group of variations for a `CatalogItem`.
8#[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)]
9pub struct CatalogItemOption {
10 /// The item option's display name for the seller. Must be unique across all item options. This
11 /// is a searchable attribute for use in applicable query filters.
12 pub name: Option<String>,
13 /// The item option's display name for the customer. This is a searchable attribute for use in
14 /// applicable query filters.
15 pub display_name: Option<String>,
16 /// The item option's human-readable description. Displayed in the Square Point of Sale app for
17 /// the seller and in the Online Store or on receipts for the buyer. This is a searchable
18 /// attribute for use in applicable query filters.
19 pub description: Option<String>,
20 /// If true, display colors for entries in `values` when present.
21 pub show_colors: Option<bool>,
22 /// A list of CatalogObjects containing the `CatalogItemOptionValues` for this item.
23 pub values: Option<Vec<CatalogObject>>,
24}