amazon-spapi 2.0.3

A Rust client library for Amazon Selling Partner API (SP-API)
Documentation
/*
 * The Selling Partner API for Amazon Warehousing and Distribution
 *
 * The Selling Partner API for Amazon Warehousing and Distribution (AWD) provides programmatic access to information about AWD shipments and inventory.
 *
 * The version of the OpenAPI document: 2024-05-09
 * 
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

/// CarrierCode : Identifies the carrier that will deliver the shipment.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct CarrierCode {
    #[serde(rename = "carrierCodeType", skip_serializing_if = "Option::is_none")]
    pub carrier_code_type: Option<models::awd_2024_05_09::CarrierCodeType>,
    /// Value of the carrier code.
    #[serde(rename = "carrierCodeValue", skip_serializing_if = "Option::is_none")]
    pub carrier_code_value: Option<String>,
}

impl CarrierCode {
    /// Identifies the carrier that will deliver the shipment.
    pub fn new() -> CarrierCode {
        CarrierCode {
            carrier_code_type: None,
            carrier_code_value: None,
        }
    }
}