pub struct Label {
pub custom_text_for_label: Option<String>,
pub dimensions: Box<LabelDimensions>,
pub file_contents: Box<FileContents>,
pub label_format: Option<LabelFormat>,
pub standard_id_for_label: Option<StandardIdForLabel>,
}Expand description
Label : Data for creating a shipping label and dimensions for printing the label.
Fields§
§custom_text_for_label: Option<String>Custom text to print on the label. Note: Custom text is only included on labels that are in ZPL format (ZPL203). FedEx does not support CustomTextForLabel.
dimensions: Box<LabelDimensions>§file_contents: Box<FileContents>§label_format: Option<LabelFormat>§standard_id_for_label: Option<StandardIdForLabel>Implementations§
Source§impl Label
impl Label
Sourcepub fn new(dimensions: LabelDimensions, file_contents: FileContents) -> Label
pub fn new(dimensions: LabelDimensions, file_contents: FileContents) -> Label
Data for creating a shipping label and dimensions for printing the label.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Label
impl<'de> Deserialize<'de> for Label
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Label
Auto Trait Implementations§
impl Freeze for Label
impl RefUnwindSafe for Label
impl Send for Label
impl Sync for Label
impl Unpin for Label
impl UnwindSafe for Label
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more