Skip to main content

amazon_spapi/models/fulfillment_inbound_v0/
prep_owner.rs

1/*
2 * Selling Partner API for Fulfillment Inbound
3 *
4 * The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network.
5 *
6 * The version of the OpenAPI document: v0
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// PrepOwner : Indicates who will prepare the item.
15/// Indicates who will prepare the item.
16#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
17pub enum PrepOwner {
18    #[serde(rename = "AMAZON")]
19    Amazon,
20    #[serde(rename = "SELLER")]
21    Seller,
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::Seller => write!(f, "SELLER"),
30        }
31    }
32}
33
34impl Default for PrepOwner {
35    fn default() -> PrepOwner {
36        Self::Amazon
37    }
38}
39