amazon-spapi 2.0.3

A Rust client library for Amazon Selling Partner API (SP-API)
Documentation
/*
 * Selling Partner API for Catalog Items
 *
 * 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).
 *
 * The version of the OpenAPI document: 2022-04-01
 * 
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

/// Dimensions : Dimensions of an Amazon catalog item or item in its packaging.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct Dimensions {
    #[serde(rename = "height", skip_serializing_if = "Option::is_none")]
    pub height: Option<Box<models::catalog_items_2022_04_01::Dimension>>,
    #[serde(rename = "length", skip_serializing_if = "Option::is_none")]
    pub length: Option<Box<models::catalog_items_2022_04_01::Dimension>>,
    #[serde(rename = "weight", skip_serializing_if = "Option::is_none")]
    pub weight: Option<Box<models::catalog_items_2022_04_01::Dimension>>,
    #[serde(rename = "width", skip_serializing_if = "Option::is_none")]
    pub width: Option<Box<models::catalog_items_2022_04_01::Dimension>>,
}

impl Dimensions {
    /// Dimensions of an Amazon catalog item or item in its packaging.
    pub fn new() -> Dimensions {
        Dimensions {
            height: None,
            length: None,
            weight: None,
            width: None,
        }
    }
}