amazon_spapi/models/shipping_v2/
supported_document_specification.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/// SupportedDocumentSpecification : Document specification that is supported for a service offering.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct SupportedDocumentSpecification {
17    #[serde(rename = "format")]
18    pub format: models::shipping_v2::DocumentFormat,
19    #[serde(rename = "size")]
20    pub size: Box<models::shipping_v2::DocumentSize>,
21    /// A list of the format options for a label.
22    #[serde(rename = "printOptions")]
23    pub print_options: Vec<models::shipping_v2::PrintOption>,
24}
25
26impl SupportedDocumentSpecification {
27    /// Document specification that is supported for a service offering.
28    pub fn new(format: models::shipping_v2::DocumentFormat, size: models::shipping_v2::DocumentSize, print_options: Vec<models::shipping_v2::PrintOption>) -> SupportedDocumentSpecification {
29        SupportedDocumentSpecification {
30            format,
31            size: Box::new(size),
32            print_options,
33        }
34    }
35}
36