amazon_spapi/models/shipping_v2/
print_option.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/// PrintOption : The format options available for a label.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct PrintOption {
17    /// A list of the supported DPI options for a document.
18    #[serde(rename = "supportedDPIs", skip_serializing_if = "Option::is_none")]
19    pub supported_dpis: Option<Vec<i32>>,
20    /// A list of the supported page layout options for a document.
21    #[serde(rename = "supportedPageLayouts")]
22    pub supported_page_layouts: Vec<String>,
23    /// A list of the supported needFileJoining boolean values for a document.
24    #[serde(rename = "supportedFileJoiningOptions")]
25    pub supported_file_joining_options: Vec<bool>,
26    /// A list of the supported documented details.
27    #[serde(rename = "supportedDocumentDetails")]
28    pub supported_document_details: Vec<models::shipping_v2::SupportedDocumentDetail>,
29}
30
31impl PrintOption {
32    /// The format options available for a label.
33    pub fn new(supported_page_layouts: Vec<String>, supported_file_joining_options: Vec<bool>, supported_document_details: Vec<models::shipping_v2::SupportedDocumentDetail>) -> PrintOption {
34        PrintOption {
35            supported_dpis: None,
36            supported_page_layouts,
37            supported_file_joining_options,
38            supported_document_details,
39        }
40    }
41}
42