amazon_spapi/models/shipping/label_result.rs
1/*
2 * Selling Partner API for Shipping
3 *
4 * Provides programmatic access to Amazon Shipping APIs. **Note:** If you are new to the Amazon Shipping API, refer to the latest version of <a href=\"https://developer-docs.amazon.com/amazon-shipping/docs/shipping-api-v2-reference\">Amazon Shipping API (v2)</a> on the <a href=\"https://developer-docs.amazon.com/amazon-shipping/\">Amazon Shipping Developer Documentation</a> site.
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/// LabelResult : Label details including label stream, format, size.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct LabelResult {
17 /// An identifier for the container. This must be unique within all the containers in the same shipment.
18 #[serde(rename = "containerReferenceId", skip_serializing_if = "Option::is_none")]
19 pub container_reference_id: Option<String>,
20 /// The tracking identifier assigned to the container.
21 #[serde(rename = "trackingId", skip_serializing_if = "Option::is_none")]
22 pub tracking_id: Option<String>,
23 #[serde(rename = "label", skip_serializing_if = "Option::is_none")]
24 pub label: Option<Box<models::shipping::Label>>,
25}
26
27impl LabelResult {
28 /// Label details including label stream, format, size.
29 pub fn new() -> LabelResult {
30 LabelResult {
31 container_reference_id: None,
32 tracking_id: None,
33 label: None,
34 }
35 }
36}
37