amazon_spapi/models/vendor_shipments/
container_identification.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct ContainerIdentification {
17 #[serde(rename = "containerIdentificationType")]
19 pub container_identification_type: ContainerIdentificationType,
20 #[serde(rename = "containerIdentificationNumber")]
22 pub container_identification_number: String,
23}
24
25impl ContainerIdentification {
26 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#[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