Skip to main content

amazon_spapi/models/shipping_v2/
generation_status.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/// GenerationStatus : Generation Status.
15/// Generation Status.
16#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
17pub enum GenerationStatus {
18    #[serde(rename = "Completed")]
19    Completed,
20    #[serde(rename = "InProgress")]
21    InProgress,
22
23}
24
25impl std::fmt::Display for GenerationStatus {
26    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
27        match self {
28            Self::Completed => write!(f, "Completed"),
29            Self::InProgress => write!(f, "InProgress"),
30        }
31    }
32}
33
34impl Default for GenerationStatus {
35    fn default() -> GenerationStatus {
36        Self::Completed
37    }
38}
39