pub struct LabelDimensions {
pub length: f32,
pub width: f32,
pub unit: UnitOfLength,
}Expand description
LabelDimensions : Dimensions for printing a shipping label.
Fields
length: f32A label dimension.
width: f32A label dimension.
unit: UnitOfLengthImplementations
sourceimpl LabelDimensions
impl LabelDimensions
sourcepub fn new(length: f32, width: f32, unit: UnitOfLength) -> LabelDimensions
pub fn new(length: f32, width: f32, unit: UnitOfLength) -> LabelDimensions
Dimensions for printing a shipping label.
Trait Implementations
sourceimpl Clone for LabelDimensions
impl Clone for LabelDimensions
sourcefn clone(&self) -> LabelDimensions
fn clone(&self) -> LabelDimensions
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 LabelDimensions
impl Debug for LabelDimensions
sourceimpl Default for LabelDimensions
impl Default for LabelDimensions
sourcefn default() -> LabelDimensions
fn default() -> LabelDimensions
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for LabelDimensions
impl<'de> Deserialize<'de> for LabelDimensions
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<LabelDimensions> for LabelDimensions
impl PartialEq<LabelDimensions> for LabelDimensions
sourcefn eq(&self, other: &LabelDimensions) -> bool
fn eq(&self, other: &LabelDimensions) -> bool
sourceimpl Serialize for LabelDimensions
impl Serialize for LabelDimensions
impl StructuralPartialEq for LabelDimensions
Auto Trait Implementations
impl RefUnwindSafe for LabelDimensions
impl Send for LabelDimensions
impl Sync for LabelDimensions
impl Unpin for LabelDimensions
impl UnwindSafe for LabelDimensions
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