pub struct DocumentSize {
pub width: f64,
pub length: f64,
pub unit: Unit,
}Expand description
DocumentSize : The size dimensions of the label.
Fields§
§width: f64The width of the document measured in the units specified.
length: f64The length of the document measured in the units specified.
unit: UnitThe unit of measurement.
Implementations§
Source§impl DocumentSize
impl DocumentSize
Trait Implementations§
Source§impl Clone for DocumentSize
impl Clone for DocumentSize
Source§fn clone(&self) -> DocumentSize
fn clone(&self) -> DocumentSize
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 DocumentSize
impl Debug for DocumentSize
Source§impl Default for DocumentSize
impl Default for DocumentSize
Source§fn default() -> DocumentSize
fn default() -> DocumentSize
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DocumentSize
impl<'de> Deserialize<'de> for DocumentSize
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 DocumentSize
impl PartialEq for DocumentSize
Source§impl Serialize for DocumentSize
impl Serialize for DocumentSize
impl StructuralPartialEq for DocumentSize
Auto Trait Implementations§
impl Freeze for DocumentSize
impl RefUnwindSafe for DocumentSize
impl Send for DocumentSize
impl Sync for DocumentSize
impl Unpin for DocumentSize
impl UnwindSafe for DocumentSize
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