Skip to main content

amazon_spapi/models/easy_ship_2022_03_23/
unit_of_length.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/// UnitOfLength : The unit of measurement used to measure the length.
15/// The unit of measurement used to measure the length.
16#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
17pub enum UnitOfLength {
18    #[serde(rename = "Cm")]
19    Cm,
20
21}
22
23impl std::fmt::Display for UnitOfLength {
24    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
25        match self {
26            Self::Cm => write!(f, "Cm"),
27        }
28    }
29}
30
31impl Default for UnitOfLength {
32    fn default() -> UnitOfLength {
33        Self::Cm
34    }
35}
36