amazon_spapi/models/merchant_fulfillment_v0/
length.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/// Length : The length.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct Length {
17    /// The value in units.
18    #[serde(rename = "value", skip_serializing_if = "Option::is_none")]
19    pub value: Option<f64>,
20    #[serde(rename = "unit", skip_serializing_if = "Option::is_none")]
21    pub unit: Option<models::merchant_fulfillment_v0::UnitOfLength>,
22}
23
24impl Length {
25    /// The length.
26    pub fn new() -> Length {
27        Length {
28            value: None,
29            unit: None,
30        }
31    }
32}
33