square_api_client/models/
measurement_unit_custom.rs

1//! Model struct for MeasurementUnitCustom type
2
3use serde::{Deserialize, Serialize};
4
5/// The information needed to define a custom unit, provided by the seller.
6#[derive(Clone, Debug, Default, Serialize, Eq, PartialEq, Deserialize)]
7pub struct MeasurementUnitCustom {
8    /// The name of the custom unit, for example "bushel".
9    pub name: String,
10    /// The abbreviation of the custom unit, such as "Bsh" (bushel). This appears in the cart for
11    /// the Point of Sale app, and in reports.
12    pub abbreviation: String,
13}