amazon_spapi/models/shipping_v2/
document_format.rs

1/*
2 * Amazon Shipping API
3 *
4 * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments.
5 *
6 * The version of the OpenAPI document: v2
7 * Contact: swa-api-core@amazon.com
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// DocumentFormat : The file format of the document.
15/// The file format of the document.
16#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
17pub enum DocumentFormat {
18    #[serde(rename = "PDF")]
19    Pdf,
20    #[serde(rename = "PNG")]
21    Png,
22    #[serde(rename = "ZPL")]
23    Zpl,
24
25}
26
27impl std::fmt::Display for DocumentFormat {
28    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
29        match self {
30            Self::Pdf => write!(f, "PDF"),
31            Self::Png => write!(f, "PNG"),
32            Self::Zpl => write!(f, "ZPL"),
33        }
34    }
35}
36
37impl Default for DocumentFormat {
38    fn default() -> DocumentFormat {
39        Self::Pdf
40    }
41}
42