use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct Label {
#[serde(rename = "CustomTextForLabel", skip_serializing_if = "Option::is_none")]
pub custom_text_for_label: Option<String>,
#[serde(rename = "Dimensions")]
pub dimensions: Box<models::merchant_fulfillment_v0::LabelDimensions>,
#[serde(rename = "FileContents")]
pub file_contents: Box<models::merchant_fulfillment_v0::FileContents>,
#[serde(rename = "LabelFormat", skip_serializing_if = "Option::is_none")]
pub label_format: Option<models::merchant_fulfillment_v0::LabelFormat>,
#[serde(rename = "StandardIdForLabel", skip_serializing_if = "Option::is_none")]
pub standard_id_for_label: Option<models::merchant_fulfillment_v0::StandardIdForLabel>,
}
impl Label {
pub fn new(dimensions: models::merchant_fulfillment_v0::LabelDimensions, file_contents: models::merchant_fulfillment_v0::FileContents) -> Label {
Label {
custom_text_for_label: None,
dimensions: Box::new(dimensions),
file_contents: Box::new(file_contents),
label_format: None,
standard_id_for_label: None,
}
}
}