amazon_spapi/models/vendor_shipments/
container_identification.rs

1/*
2 * Selling Partner API for Retail Procurement Shipments
3 *
4 * The Selling Partner API for Retail Procurement Shipments provides programmatic access to retail shipping data for vendors.
5 *
6 * The version of the OpenAPI document: v1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// ContainerIdentification : A list of carton identifiers.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct ContainerIdentification {
17    /// The container identification type.
18    #[serde(rename = "containerIdentificationType")]
19    pub container_identification_type: ContainerIdentificationType,
20    /// Container identification number that adheres to the definition of the container identification type.
21    #[serde(rename = "containerIdentificationNumber")]
22    pub container_identification_number: String,
23}
24
25impl ContainerIdentification {
26    /// A list of carton identifiers.
27    pub fn new(container_identification_type: ContainerIdentificationType, container_identification_number: String) -> ContainerIdentification {
28        ContainerIdentification {
29            container_identification_type,
30            container_identification_number,
31        }
32    }
33}
34/// The container identification type.
35#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
36pub enum ContainerIdentificationType {
37    #[serde(rename = "SSCC")]
38    Sscc,
39    #[serde(rename = "AMZNCC")]
40    Amzncc,
41    #[serde(rename = "GTIN")]
42    Gtin,
43    #[serde(rename = "BPS")]
44    Bps,
45    #[serde(rename = "CID")]
46    Cid,
47}
48
49impl Default for ContainerIdentificationType {
50    fn default() -> ContainerIdentificationType {
51        Self::Sscc
52    }
53}
54