amazon_spapi/models/easy_ship_2022_03_23/dimensions.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/// Dimensions : The dimensions of the scheduled package.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct Dimensions {
17 /// The numerical value of the specified dimension.
18 #[serde(rename = "length", skip_serializing_if = "Option::is_none")]
19 pub length: Option<f32>,
20 /// The numerical value of the specified dimension.
21 #[serde(rename = "width", skip_serializing_if = "Option::is_none")]
22 pub width: Option<f32>,
23 /// The numerical value of the specified dimension.
24 #[serde(rename = "height", skip_serializing_if = "Option::is_none")]
25 pub height: Option<f32>,
26 #[serde(rename = "unit", skip_serializing_if = "Option::is_none")]
27 pub unit: Option<models::easy_ship_2022_03_23::UnitOfLength>,
28 /// A string of up to 255 characters.
29 #[serde(rename = "identifier", skip_serializing_if = "Option::is_none")]
30 pub identifier: Option<String>,
31}
32
33impl Dimensions {
34 /// The dimensions of the scheduled package.
35 pub fn new() -> Dimensions {
36 Dimensions {
37 length: None,
38 width: None,
39 height: None,
40 unit: None,
41 identifier: None,
42 }
43 }
44}
45