amazon_spapi/models/fulfillment_inbound_2024_03_20/
stackability.rs

1/*
2 * The Selling Partner API for FBA inbound operations.
3 *
4 * The Selling Partner API for Fulfillment By Amazon (FBA) Inbound. The FBA Inbound API enables building inbound workflows to create, manage, and send shipments into Amazon's fulfillment network. The API has interoperability with the Send-to-Amazon user interface.
5 *
6 * The version of the OpenAPI document: 2024-03-20
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// Stackability : Indicates whether pallets will be stacked when carrier arrives for pick-up.
15/// Indicates whether pallets will be stacked when carrier arrives for pick-up.
16#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
17pub enum Stackability {
18    #[serde(rename = "STACKABLE")]
19    Stackable,
20    #[serde(rename = "NON_STACKABLE")]
21    NonStackable,
22
23}
24
25impl std::fmt::Display for Stackability {
26    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
27        match self {
28            Self::Stackable => write!(f, "STACKABLE"),
29            Self::NonStackable => write!(f, "NON_STACKABLE"),
30        }
31    }
32}
33
34impl Default for Stackability {
35    fn default() -> Stackability {
36        Self::Stackable
37    }
38}
39