Skip to main content

amazon_spapi/models/invoices_2024_06_19/
file_format.rs

1/*
2 * The Selling Partner API for Invoices.
3 *
4 * Use the Selling Partner API for Invoices to retrieve and manage invoice-related operations, which can help selling partners manage their bookkeeping processes.
5 *
6 * The version of the OpenAPI document: 2024-06-19
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// FileFormat : Supported invoice file extensions.
15/// Supported invoice file extensions.
16#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
17pub enum FileFormat {
18    #[serde(rename = "XML")]
19    Xml,
20
21}
22
23impl std::fmt::Display for FileFormat {
24    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
25        match self {
26            Self::Xml => write!(f, "XML"),
27        }
28    }
29}
30
31impl Default for FileFormat {
32    fn default() -> FileFormat {
33        Self::Xml
34    }
35}
36