amazon_spapi/models/shipping_v2/
document_format.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[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