amazon_spapi/models/shipping_v2/
print_option.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct PrintOption {
17 #[serde(rename = "supportedDPIs", skip_serializing_if = "Option::is_none")]
19 pub supported_dpis: Option<Vec<i32>>,
20 #[serde(rename = "supportedPageLayouts")]
22 pub supported_page_layouts: Vec<String>,
23 #[serde(rename = "supportedFileJoiningOptions")]
25 pub supported_file_joining_options: Vec<bool>,
26 #[serde(rename = "supportedDocumentDetails")]
28 pub supported_document_details: Vec<models::shipping_v2::SupportedDocumentDetail>,
29}
30
31impl PrintOption {
32 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