/*
* The Selling Partner API for Amazon Warehousing and Distribution
*
* The Selling Partner API for Amazon Warehousing and Distribution (AWD) provides programmatic access to information about AWD shipments and inventory.
*
* The version of the OpenAPI document: 2024-05-09
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// PackageWeight : Represents the weight of the package with a unit of measurement.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct PackageWeight {
#[serde(rename = "unitOfMeasurement")]
pub unit_of_measurement: models::awd_2024_05_09::WeightUnitOfMeasurement,
/// The package weight value.
#[serde(rename = "weight")]
pub weight: f64,
}
impl PackageWeight {
/// Represents the weight of the package with a unit of measurement.
pub fn new(unit_of_measurement: models::awd_2024_05_09::WeightUnitOfMeasurement, weight: f64) -> PackageWeight {
PackageWeight {
unit_of_measurement,
weight,
}
}
}