Skip to main content

amazon_spapi/models/vendor_shipments/
location.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/// Location : Location identifier.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct Location {
17    /// Type of location identification.
18    #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
19    pub r#type: Option<String>,
20    /// Location code.
21    #[serde(rename = "locationCode", skip_serializing_if = "Option::is_none")]
22    pub location_code: Option<String>,
23    /// The two digit country code. In ISO 3166-1 alpha-2 format.
24    #[serde(rename = "countryCode", skip_serializing_if = "Option::is_none")]
25    pub country_code: Option<String>,
26}
27
28impl Location {
29    /// Location identifier.
30    pub fn new() -> Location {
31        Location {
32            r#type: None,
33            location_code: None,
34            country_code: None,
35        }
36    }
37}
38