amazon_spapi/models/fulfillment_inbound_v0/
box_contents_source.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/// BoxContentsSource : Where the seller provided box contents information for a shipment.
15/// Where the seller provided box contents information for a shipment.
16#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
17pub enum BoxContentsSource {
18    #[serde(rename = "NONE")]
19    None,
20    #[serde(rename = "FEED")]
21    Feed,
22    #[serde(rename = "2D_BARCODE")]
23    Variant2DBarcode,
24    #[serde(rename = "INTERACTIVE")]
25    Interactive,
26
27}
28
29impl std::fmt::Display for BoxContentsSource {
30    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
31        match self {
32            Self::None => write!(f, "NONE"),
33            Self::Feed => write!(f, "FEED"),
34            Self::Variant2DBarcode => write!(f, "2D_BARCODE"),
35            Self::Interactive => write!(f, "INTERACTIVE"),
36        }
37    }
38}
39
40impl Default for BoxContentsSource {
41    fn default() -> BoxContentsSource {
42        Self::None
43    }
44}
45