Skip to main content

amazon_spapi/models/awd_2024_05_09/
package_volume.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/// PackageVolume : Represents the volume of the package with a unit of measurement.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct PackageVolume {
17    #[serde(rename = "unitOfMeasurement")]
18    pub unit_of_measurement: models::awd_2024_05_09::VolumeUnitOfMeasurement,
19    /// The package volume value.
20    #[serde(rename = "volume")]
21    pub volume: f64,
22}
23
24impl PackageVolume {
25    /// Represents the volume of the package with a unit of measurement.
26    pub fn new(unit_of_measurement: models::awd_2024_05_09::VolumeUnitOfMeasurement, volume: f64) -> PackageVolume {
27        PackageVolume {
28            unit_of_measurement,
29            volume,
30        }
31    }
32}
33