amazon-spapi 2.0.3

A Rust client library for Amazon Selling Partner API (SP-API)
Documentation
/*
 * The Selling Partner API for Amazon Warehousing and Distribution
 *
 * The Selling Partner API for Amazon Warehousing and Distribution (AWD) provides programmatic access to information about AWD shipments and inventory.
 *
 * The version of the OpenAPI document: 2024-05-09
 * 
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

/// LabelStatus : The status of your label.
/// The status of your label.
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum LabelStatus {
    #[serde(rename = "GENERATING")]
    Generating,
    #[serde(rename = "GENERATED")]
    Generated,
    #[serde(rename = "GENERATION_FAILED")]
    GenerationFailed,
    #[serde(rename = "NOT_READY")]
    NotReady,

}

impl std::fmt::Display for LabelStatus {
    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
        match self {
            Self::Generating => write!(f, "GENERATING"),
            Self::Generated => write!(f, "GENERATED"),
            Self::GenerationFailed => write!(f, "GENERATION_FAILED"),
            Self::NotReady => write!(f, "NOT_READY"),
        }
    }
}

impl Default for LabelStatus {
    fn default() -> LabelStatus {
        Self::Generating
    }
}