Skip to main content

amazon_spapi/models/awd_2024_05_09/
package_dimensions.rs

1/*
2 * The Selling Partner API for Amazon Warehousing and Distribution
3 *
4 * The Selling Partner API for Amazon Warehousing and Distribution (AWD) provides programmatic access to information about AWD shipments and inventory.
5 *
6 * The version of the OpenAPI document: 2024-05-09
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// PackageDimensions : Dimensions of the package.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct PackageDimensions {
17    /// Height of the package.
18    #[serde(rename = "height")]
19    pub height: f64,
20    /// Length of the package.
21    #[serde(rename = "length")]
22    pub length: f64,
23    #[serde(rename = "unitOfMeasurement")]
24    pub unit_of_measurement: models::awd_2024_05_09::DimensionUnitOfMeasurement,
25    /// Width of the package.
26    #[serde(rename = "width")]
27    pub width: f64,
28}
29
30impl PackageDimensions {
31    /// Dimensions of the package.
32    pub fn new(height: f64, length: f64, unit_of_measurement: models::awd_2024_05_09::DimensionUnitOfMeasurement, width: f64) -> PackageDimensions {
33        PackageDimensions {
34            height,
35            length,
36            unit_of_measurement,
37            width,
38        }
39    }
40}
41