amazon_spapi/models/awd_2024_05_09/
carrier_code.rs

1/*
2 * The Selling Partner API for Amazon Warehousing and Distribution
3 *
4 * The Selling Partner API for Amazon Warehousing and Distribution (AWD) provides programmatic access to information about AWD shipments and inventory.
5 *
6 * The version of the OpenAPI document: 2024-05-09
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// CarrierCode : Identifies the carrier that will deliver the shipment.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct CarrierCode {
17    #[serde(rename = "carrierCodeType", skip_serializing_if = "Option::is_none")]
18    pub carrier_code_type: Option<models::awd_2024_05_09::CarrierCodeType>,
19    /// Value of the carrier code.
20    #[serde(rename = "carrierCodeValue", skip_serializing_if = "Option::is_none")]
21    pub carrier_code_value: Option<String>,
22}
23
24impl CarrierCode {
25    /// Identifies the carrier that will deliver the shipment.
26    pub fn new() -> CarrierCode {
27        CarrierCode {
28            carrier_code_type: None,
29            carrier_code_value: None,
30        }
31    }
32}
33