Skip to main content

amazon_spapi/models/awd_2024_05_09/
prep_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/// PrepOwner : The owner of the preparations, if special preparations are required.
15/// The owner of the preparations, if special preparations are required.
16#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
17pub enum PrepOwner {
18    #[serde(rename = "AMAZON")]
19    Amazon,
20    #[serde(rename = "SELF")]
21    VariantSelf,
22
23}
24
25impl std::fmt::Display for PrepOwner {
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 PrepOwner {
35    fn default() -> PrepOwner {
36        Self::Amazon
37    }
38}
39