Skip to main content

amazon_spapi/models/invoices_2024_06_19/
export_status.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/// ExportStatus : The current status of the request.
15/// The current status of the request.
16#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
17pub enum ExportStatus {
18    #[serde(rename = "REQUESTED")]
19    Requested,
20    #[serde(rename = "PROCESSING")]
21    Processing,
22    #[serde(rename = "DONE")]
23    Done,
24    #[serde(rename = "ERROR")]
25    Error,
26
27}
28
29impl std::fmt::Display for ExportStatus {
30    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
31        match self {
32            Self::Requested => write!(f, "REQUESTED"),
33            Self::Processing => write!(f, "PROCESSING"),
34            Self::Done => write!(f, "DONE"),
35            Self::Error => write!(f, "ERROR"),
36        }
37    }
38}
39
40impl Default for ExportStatus {
41    fn default() -> ExportStatus {
42        Self::Requested
43    }
44}
45