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
sourceimpl 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
sourceimpl Clone for LabelSpecification
impl Clone for LabelSpecification
sourcefn clone(&self) -> LabelSpecification
fn clone(&self) -> LabelSpecification
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for LabelSpecification
impl Debug for LabelSpecification
sourceimpl Default for LabelSpecification
impl Default for LabelSpecification
sourcefn default() -> LabelSpecification
fn default() -> LabelSpecification
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for LabelSpecification
impl<'de> Deserialize<'de> for LabelSpecification
sourcefn 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
sourceimpl PartialEq<LabelSpecification> for LabelSpecification
impl PartialEq<LabelSpecification> for LabelSpecification
sourcefn eq(&self, other: &LabelSpecification) -> bool
fn eq(&self, other: &LabelSpecification) -> bool
sourceimpl Serialize for LabelSpecification
impl Serialize for LabelSpecification
impl StructuralPartialEq for LabelSpecification
Auto Trait Implementations
impl RefUnwindSafe for LabelSpecification
impl Send for LabelSpecification
impl Sync for LabelSpecification
impl Unpin for LabelSpecification
impl UnwindSafe for LabelSpecification
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more