Skip to main content

amazon_spapi/models/catalog_items_2022_04_01/
dimensions.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/// Dimensions : Dimensions of an Amazon catalog item or item in its packaging.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct Dimensions {
17    #[serde(rename = "height", skip_serializing_if = "Option::is_none")]
18    pub height: Option<Box<models::catalog_items_2022_04_01::Dimension>>,
19    #[serde(rename = "length", skip_serializing_if = "Option::is_none")]
20    pub length: Option<Box<models::catalog_items_2022_04_01::Dimension>>,
21    #[serde(rename = "weight", skip_serializing_if = "Option::is_none")]
22    pub weight: Option<Box<models::catalog_items_2022_04_01::Dimension>>,
23    #[serde(rename = "width", skip_serializing_if = "Option::is_none")]
24    pub width: Option<Box<models::catalog_items_2022_04_01::Dimension>>,
25}
26
27impl Dimensions {
28    /// Dimensions of an Amazon catalog item or item in its packaging.
29    pub fn new() -> Dimensions {
30        Dimensions {
31            height: None,
32            length: None,
33            weight: None,
34            width: None,
35        }
36    }
37}
38