amazon_spapi/models/merchant_fulfillment_v0/label_dimensions.rs
1/*
2 * Selling Partner API for Merchant Fulfillment
3 *
4 * With the Selling Partner API for Merchant Fulfillment, you can build applications that sellers can use to purchase shipping for non-Prime and Prime orders using Amazon's Buy Shipping Services.
5 *
6 * The version of the OpenAPI document: v0
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// LabelDimensions : Dimensions for printing a shipping label.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct LabelDimensions {
17 /// A label dimension.
18 #[serde(rename = "Length")]
19 pub length: f64,
20 /// A label dimension.
21 #[serde(rename = "Width")]
22 pub width: f64,
23 #[serde(rename = "Unit")]
24 pub unit: models::merchant_fulfillment_v0::UnitOfLength,
25}
26
27impl LabelDimensions {
28 /// Dimensions for printing a shipping label.
29 pub fn new(length: f64, width: f64, unit: models::merchant_fulfillment_v0::UnitOfLength) -> LabelDimensions {
30 LabelDimensions {
31 length,
32 width,
33 unit,
34 }
35 }
36}
37