/*
* The Selling Partner API for FBA inbound operations.
*
* The Selling Partner API for Fulfillment By Amazon (FBA) Inbound. The FBA Inbound API enables building inbound workflows to create, manage, and send shipments into Amazon's fulfillment network. The API has interoperability with the Send-to-Amazon user interface.
*
* The version of the OpenAPI document: 2024-03-20
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// Weight : The weight of a package.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct Weight {
#[serde(rename = "unit")]
pub unit: models::fulfillment_inbound_2024_03_20::UnitOfWeight,
/// Value of a weight.
#[serde(rename = "value")]
pub value: f64,
}
impl Weight {
/// The weight of a package.
pub fn new(unit: models::fulfillment_inbound_2024_03_20::UnitOfWeight, value: f64) -> Weight {
Weight {
unit,
value,
}
}
}