Skip to main content

amazon_spapi/models/awd_2024_05_09/
label_status.rs

1/*
2 * The Selling Partner API for Amazon Warehousing and Distribution
3 *
4 * The Selling Partner API for Amazon Warehousing and Distribution (AWD) provides programmatic access to information about AWD shipments and inventory.
5 *
6 * The version of the OpenAPI document: 2024-05-09
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// LabelStatus : The status of your label.
15/// The status of your label.
16#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
17pub enum LabelStatus {
18    #[serde(rename = "GENERATING")]
19    Generating,
20    #[serde(rename = "GENERATED")]
21    Generated,
22    #[serde(rename = "GENERATION_FAILED")]
23    GenerationFailed,
24    #[serde(rename = "NOT_READY")]
25    NotReady,
26
27}
28
29impl std::fmt::Display for LabelStatus {
30    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
31        match self {
32            Self::Generating => write!(f, "GENERATING"),
33            Self::Generated => write!(f, "GENERATED"),
34            Self::GenerationFailed => write!(f, "GENERATION_FAILED"),
35            Self::NotReady => write!(f, "NOT_READY"),
36        }
37    }
38}
39
40impl Default for LabelStatus {
41    fn default() -> LabelStatus {
42        Self::Generating
43    }
44}
45