amazon_spapi/models/merchant_fulfillment_v0/
label_format.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/// LabelFormat : The label format.
15/// The label format.
16#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
17pub enum LabelFormat {
18    #[serde(rename = "PDF")]
19    Pdf,
20    #[serde(rename = "PNG")]
21    Png,
22    #[serde(rename = "ZPL203")]
23    Zpl203,
24    #[serde(rename = "ZPL300")]
25    Zpl300,
26    #[serde(rename = "ShippingServiceDefault")]
27    ShippingServiceDefault,
28
29}
30
31impl std::fmt::Display for LabelFormat {
32    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
33        match self {
34            Self::Pdf => write!(f, "PDF"),
35            Self::Png => write!(f, "PNG"),
36            Self::Zpl203 => write!(f, "ZPL203"),
37            Self::Zpl300 => write!(f, "ZPL300"),
38            Self::ShippingServiceDefault => write!(f, "ShippingServiceDefault"),
39        }
40    }
41}
42
43impl Default for LabelFormat {
44    fn default() -> LabelFormat {
45        Self::Pdf
46    }
47}
48