amazon_spapi/models/fulfillment_inbound_v0/
barcode_instruction.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/// BarcodeInstruction : Labeling requirements for the item. For more information about FBA labeling requirements, see the Seller Central Help for your marketplace.
15/// Labeling requirements for the item. For more information about FBA labeling requirements, see the Seller Central Help for your marketplace.
16#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
17pub enum BarcodeInstruction {
18    #[serde(rename = "RequiresFNSKULabel")]
19    RequiresFnskuLabel,
20    #[serde(rename = "CanUseOriginalBarcode")]
21    CanUseOriginalBarcode,
22    #[serde(rename = "MustProvideSellerSKU")]
23    MustProvideSellerSku,
24
25}
26
27impl std::fmt::Display for BarcodeInstruction {
28    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
29        match self {
30            Self::RequiresFnskuLabel => write!(f, "RequiresFNSKULabel"),
31            Self::CanUseOriginalBarcode => write!(f, "CanUseOriginalBarcode"),
32            Self::MustProvideSellerSku => write!(f, "MustProvideSellerSKU"),
33        }
34    }
35}
36
37impl Default for BarcodeInstruction {
38    fn default() -> BarcodeInstruction {
39        Self::RequiresFnskuLabel
40    }
41}
42