amazon_spapi/models/vendor_shipments/route.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/// Route : This is used only for direct import shipment confirmations.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct Route {
17 /// The port or location involved in transporting the cargo, as specified in transportation contracts or operational plans.
18 #[serde(rename = "stops")]
19 pub stops: Vec<models::vendor_shipments::Stop>,
20}
21
22impl Route {
23 /// This is used only for direct import shipment confirmations.
24 pub fn new(stops: Vec<models::vendor_shipments::Stop>) -> Route {
25 Route {
26 stops,
27 }
28 }
29}
30