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
//! Model struct for CatalogCustomAttributeDefinitionNumberConfig type.

use serde::{Deserialize, Serialize};

/// Configuration associated with Custom Attribute Definitions of type `NUMBER`.
#[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)]
pub struct CatalogCustomAttributeDefinitionNumberConfig {
    /// An integer between 0 and 5 that represents the maximum number of positions allowed after the
    /// decimal in number custom attribute values For example:
    ///
    /// * if the precision is 0, the quantity can be 1, 2, 3, etc.
    /// * if the precision is 1, the quantity can be 0.1, 0.2, etc.
    /// * if the precision is 2, the quantity can be 0.01, 0.12, etc.
    ///
    /// Default: 5
    pub precision: Option<i32>,
}