squareup 2.13.0

Rust SDK for the Square Developer API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Model struct for CatalogItemFoodAndBeverageDetails type.

use crate::models::CatalogItemFoodAndBeverageDetailsDietaryPreference;
use crate::models::catalog_item_food_and_beverage_details_ingredient::CatalogItemFoodAndBeverageDetailsIngredient;
use serde::{Deserialize, Serialize};

/// The food and beverage-specific details of a FOOD_AND_BEV item.
#[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)]
pub struct CatalogItemFoodAndBeverageDetails {
    /// The calorie count (in the unit of kcal) for the FOOD_AND_BEV type of items.
    pub calorie_count: Option<i32>,
    /// The text of the item's display label in the Square Point of Sale app. Only up to the first
    /// five characters of the string are used. This attribute is searchable, and its value length
    /// is of Unicode code points.
    pub dietary_preferences: Option<Vec<CatalogItemFoodAndBeverageDetailsDietaryPreference>>,
    /// The ingredients for the FOOD_AND_BEV type item.
    pub ingredients: Option<Vec<CatalogItemFoodAndBeverageDetailsIngredient>>,
}