Skip to main content

amazon_spapi/models/shipping_v2/
linkable_carrier.rs

1/*
2 * Amazon Shipping API
3 *
4 * The Amazon Shipping API is designed to support outbound shipping use cases both for orders originating on Amazon-owned marketplaces as well as external channels/marketplaces. With these APIs, you can request shipping rates, create shipments, cancel shipments, and track shipments.
5 *
6 * The version of the OpenAPI document: v2
7 * Contact: swa-api-core@amazon.com
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// LinkableCarrier : Info About Linkable Carrier
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct LinkableCarrier {
17    /// The carrier identifier for the offering, provided by the carrier.
18    #[serde(rename = "carrierId", skip_serializing_if = "Option::is_none")]
19    pub carrier_id: Option<String>,
20    /// A list of LinkableAccountType
21    #[serde(rename = "linkableAccountTypes", skip_serializing_if = "Option::is_none")]
22    pub linkable_account_types: Option<Vec<models::shipping_v2::LinkableAccountType>>,
23}
24
25impl LinkableCarrier {
26    /// Info About Linkable Carrier
27    pub fn new() -> LinkableCarrier {
28        LinkableCarrier {
29            carrier_id: None,
30            linkable_account_types: None,
31        }
32    }
33}
34