amazon_spapi/models/merchant_fulfillment_v0/
label.rs1use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct Label {
17 #[serde(rename = "CustomTextForLabel", skip_serializing_if = "Option::is_none")]
19 pub custom_text_for_label: Option<String>,
20 #[serde(rename = "Dimensions")]
21 pub dimensions: Box<models::merchant_fulfillment_v0::LabelDimensions>,
22 #[serde(rename = "FileContents")]
23 pub file_contents: Box<models::merchant_fulfillment_v0::FileContents>,
24 #[serde(rename = "LabelFormat", skip_serializing_if = "Option::is_none")]
25 pub label_format: Option<models::merchant_fulfillment_v0::LabelFormat>,
26 #[serde(rename = "StandardIdForLabel", skip_serializing_if = "Option::is_none")]
27 pub standard_id_for_label: Option<models::merchant_fulfillment_v0::StandardIdForLabel>,
28}
29
30impl Label {
31 pub fn new(dimensions: models::merchant_fulfillment_v0::LabelDimensions, file_contents: models::merchant_fulfillment_v0::FileContents) -> Label {
33 Label {
34 custom_text_for_label: None,
35 dimensions: Box::new(dimensions),
36 file_contents: Box::new(file_contents),
37 label_format: None,
38 standard_id_for_label: None,
39 }
40 }
41}
42