amazon_spapi/models/catalog_items_2022_04_01/dimension.rs
1/*
2 * Selling Partner API for Catalog Items
3 *
4 * Use the Selling Partner API for Catalog Items to retrieve information about items in the Amazon catalog. For more information, refer to the [Catalog Items API Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/:catalog-items-api-v2022-04-01-use-case-guide).
5 *
6 * The version of the OpenAPI document: 2022-04-01
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// Dimension : The value of an individual dimension for an Amazon catalog item or item package.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct Dimension {
17 /// Unit of measurement for the dimension value.
18 #[serde(rename = "unit", skip_serializing_if = "Option::is_none")]
19 pub unit: Option<String>,
20 /// Numeric value of the dimension.
21 #[serde(rename = "value", skip_serializing_if = "Option::is_none")]
22 pub value: Option<f64>,
23}
24
25impl Dimension {
26 /// The value of an individual dimension for an Amazon catalog item or item package.
27 pub fn new() -> Dimension {
28 Dimension {
29 unit: None,
30 value: None,
31 }
32 }
33}
34