amazon_spapi/models/merchant_fulfillment_v0/label_format_option.rs
1/*
2 * Selling Partner API for Merchant Fulfillment
3 *
4 * With the Selling Partner API for Merchant Fulfillment, you can build applications that sellers can use to purchase shipping for non-Prime and Prime orders using Amazon's Buy Shipping Services.
5 *
6 * The version of the OpenAPI document: v0
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// LabelFormatOption : The label format details and whether to include a packing slip.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct LabelFormatOption {
17 /// When true, include a packing slip with the label.
18 #[serde(rename = "IncludePackingSlipWithLabel", skip_serializing_if = "Option::is_none")]
19 pub include_packing_slip_with_label: Option<bool>,
20 #[serde(rename = "LabelFormat", skip_serializing_if = "Option::is_none")]
21 pub label_format: Option<models::merchant_fulfillment_v0::LabelFormat>,
22}
23
24impl LabelFormatOption {
25 /// The label format details and whether to include a packing slip.
26 pub fn new() -> LabelFormatOption {
27 LabelFormatOption {
28 include_packing_slip_with_label: None,
29 label_format: None,
30 }
31 }
32}
33