amazon_spapi/models/easy_ship_2022_03_23/
weight.rs

1/*
2 * Selling Partner API for Easy Ship
3 *
4 * Use the Selling Partner API for Easy Ship to build applications for sellers to manage and ship Amazon Easy Ship orders. With this API, you can get available time slots, schedule and reschedule Easy Ship orders, and print shipping labels, invoices, and warranties. To review the differences in Easy Ship operations by marketplace, refer to [Marketplace support](https://developer-docs.amazon.com/sp-api/docs/easyship-api-v2022-03-23-use-case-guide#marketplace-support).
5 *
6 * The version of the OpenAPI document: 2022-03-23
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// Weight : The weight of the scheduled package
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct Weight {
17    /// The weight of the package.
18    #[serde(rename = "value", skip_serializing_if = "Option::is_none")]
19    pub value: Option<f32>,
20    #[serde(rename = "unit", skip_serializing_if = "Option::is_none")]
21    pub unit: Option<models::easy_ship_2022_03_23::UnitOfWeight>,
22}
23
24impl Weight {
25    /// The weight of the scheduled package
26    pub fn new() -> Weight {
27        Weight {
28            value: None,
29            unit: None,
30        }
31    }
32}
33