squareup/models/catalog_item_modifier_list_info.rs
1//! Model struct for CatalogItemModifierListInfo type.
2
3use serde::{Deserialize, Serialize};
4
5use super::CatalogModifierOverride;
6
7/// Options to control the properties of a `CatalogModifierList` applied to a `CatalogItem`
8/// instance.
9#[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)]
10pub struct CatalogItemModifierListInfo {
11 pub modifier_list_id: String,
12 pub modifier_overrides: Option<Vec<CatalogModifierOverride>>,
13 /// If 0 or larger, the smallest number of `CatalogModifier`s that must be selected from this
14 /// `CatalogModifierList`.
15 pub min_selected_modifiers: Option<i32>,
16 /// If 0 or larger, the largest number of `CatalogModifier`s that can be selected from this
17 /// `CatalogModifierList`.
18 pub max_selected_modifiers: Option<i32>,
19 /// If `true`, enable this `CatalogModifierList`. The default value is `true`.
20 pub enabled: Option<bool>,
21}