/*
* Amazon Shipping API
*
* 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.
*
* The version of the OpenAPI document: v2
* Contact: swa-api-core@amazon.com
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// SupportedDocumentSpecification : Document specification that is supported for a service offering.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct SupportedDocumentSpecification {
#[serde(rename = "format")]
pub format: models::shipping_v2::DocumentFormat,
#[serde(rename = "size")]
pub size: Box<models::shipping_v2::DocumentSize>,
/// A list of the format options for a label.
#[serde(rename = "printOptions")]
pub print_options: Vec<models::shipping_v2::PrintOption>,
}
impl SupportedDocumentSpecification {
/// Document specification that is supported for a service offering.
pub fn new(format: models::shipping_v2::DocumentFormat, size: models::shipping_v2::DocumentSize, print_options: Vec<models::shipping_v2::PrintOption>) -> SupportedDocumentSpecification {
SupportedDocumentSpecification {
format,
size: Box::new(size),
print_options,
}
}
}