Skip to main content

amazon_spapi/models/aplus_content_2020_11_01/
content_status.rs

1/*
2 * Selling Partner API for A+ Content Management
3 *
4 * Use the A+ Content API to build applications that help selling partners add rich marketing content to their Amazon product detail pages. Selling partners can use A+ content to share their brand and product story, which helps buyers make informed purchasing decisions. Selling partners use content modules to add images and text.
5 *
6 * The version of the OpenAPI document: 2020-11-01
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// ContentStatus : The submission status of the content document.
15/// The submission status of the content document.
16#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
17pub enum ContentStatus {
18    #[serde(rename = "APPROVED")]
19    Approved,
20    #[serde(rename = "DRAFT")]
21    Draft,
22    #[serde(rename = "REJECTED")]
23    Rejected,
24    #[serde(rename = "SUBMITTED")]
25    Submitted,
26
27}
28
29impl std::fmt::Display for ContentStatus {
30    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
31        match self {
32            Self::Approved => write!(f, "APPROVED"),
33            Self::Draft => write!(f, "DRAFT"),
34            Self::Rejected => write!(f, "REJECTED"),
35            Self::Submitted => write!(f, "SUBMITTED"),
36        }
37    }
38}
39
40impl Default for ContentStatus {
41    fn default() -> ContentStatus {
42        Self::Approved
43    }
44}
45