pub struct LabelSpecification {
pub label_format: LabelFormat,
pub label_stock_size: LabelStockSize,
}Expand description
LabelSpecification : The label specification info.
Fields§
§label_format: LabelFormatThe format of the label. Enum of PNG only for now.
label_stock_size: LabelStockSizeThe label stock size specification in length and height. Enum of 4x6 only for now.
Implementations§
Source§impl LabelSpecification
impl LabelSpecification
Sourcepub fn new(
label_format: LabelFormat,
label_stock_size: LabelStockSize,
) -> LabelSpecification
pub fn new( label_format: LabelFormat, label_stock_size: LabelStockSize, ) -> LabelSpecification
The label specification info.
Trait Implementations§
Source§impl Clone for LabelSpecification
impl Clone for LabelSpecification
Source§fn clone(&self) -> LabelSpecification
fn clone(&self) -> LabelSpecification
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LabelSpecification
impl Debug for LabelSpecification
Source§impl Default for LabelSpecification
impl Default for LabelSpecification
Source§fn default() -> LabelSpecification
fn default() -> LabelSpecification
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LabelSpecification
impl<'de> Deserialize<'de> for LabelSpecification
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
Source§impl PartialEq for LabelSpecification
impl PartialEq for LabelSpecification
Source§impl Serialize for LabelSpecification
impl Serialize for LabelSpecification
impl StructuralPartialEq for LabelSpecification
Auto Trait Implementations§
impl Freeze for LabelSpecification
impl RefUnwindSafe for LabelSpecification
impl Send for LabelSpecification
impl Sync for LabelSpecification
impl Unpin for LabelSpecification
impl UnwindSafe for LabelSpecification
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