Skip to main content

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