amazon_spapi/models/orders_v0/
other_delivery_attributes.rs

1/*
2 * Selling Partner API for Orders
3 *
4 * Use the Orders Selling Partner API to programmatically retrieve order information. With this API, you can develop fast, flexible, and custom applications to manage order synchronization, perform order research, and create demand-based decision support tools.   _Note:_ For the JP, AU, and SG marketplaces, the Orders API supports orders from 2016 onward. For all other marketplaces, the Orders API supports orders for the last two years (orders older than this don't show up in the response).
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/// OtherDeliveryAttributes : Miscellaneous delivery attributes associated with the shipping address.
15/// Miscellaneous delivery attributes associated with the shipping address.
16#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
17pub enum OtherDeliveryAttributes {
18    #[serde(rename = "HAS_ACCESS_POINT")]
19    HasAccessPoint,
20    #[serde(rename = "PALLET_ENABLED")]
21    PalletEnabled,
22    #[serde(rename = "PALLET_DISABLED")]
23    PalletDisabled,
24
25}
26
27impl std::fmt::Display for OtherDeliveryAttributes {
28    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
29        match self {
30            Self::HasAccessPoint => write!(f, "HAS_ACCESS_POINT"),
31            Self::PalletEnabled => write!(f, "PALLET_ENABLED"),
32            Self::PalletDisabled => write!(f, "PALLET_DISABLED"),
33        }
34    }
35}
36
37impl Default for OtherDeliveryAttributes {
38    fn default() -> OtherDeliveryAttributes {
39        Self::HasAccessPoint
40    }
41}
42