square_api_client/models/
catalog_category.rs

1//! Model struct for CatalogCategory type.
2
3use serde::{Deserialize, Serialize};
4
5/// A category to which a `CatalogItem` instance belongs.
6#[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)]
7pub struct CatalogCategory {
8    /// The category name. This is a searchable attribute for use in applicable query filters, and
9    /// its value length is of Unicode code points.
10    pub name: Option<String>,
11    /// The IDs of images associated with this `CatalogCategory` instance. Currently these images
12    /// are not displayed by Square, but are free to be displayed in 3rd party applications.
13    pub image_ids: Option<Vec<String>>,
14}