pub struct PackageDimensions {
pub height: f64,
pub length: f64,
pub unit_of_measurement: DimensionUnitOfMeasurement,
pub width: f64,
}Expand description
PackageDimensions : Dimensions of the package.
Fields§
§height: f64Height of the package.
length: f64Length of the package.
unit_of_measurement: DimensionUnitOfMeasurement§width: f64Width of the package.
Implementations§
Source§impl PackageDimensions
impl PackageDimensions
Sourcepub fn new(
height: f64,
length: f64,
unit_of_measurement: DimensionUnitOfMeasurement,
width: f64,
) -> PackageDimensions
pub fn new( height: f64, length: f64, unit_of_measurement: DimensionUnitOfMeasurement, width: f64, ) -> PackageDimensions
Dimensions of the package.
Trait Implementations§
Source§impl Clone for PackageDimensions
impl Clone for PackageDimensions
Source§fn clone(&self) -> PackageDimensions
fn clone(&self) -> PackageDimensions
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 PackageDimensions
impl Debug for PackageDimensions
Source§impl Default for PackageDimensions
impl Default for PackageDimensions
Source§fn default() -> PackageDimensions
fn default() -> PackageDimensions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PackageDimensions
impl<'de> Deserialize<'de> for PackageDimensions
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 PackageDimensions
impl PartialEq for PackageDimensions
Source§impl Serialize for PackageDimensions
impl Serialize for PackageDimensions
impl StructuralPartialEq for PackageDimensions
Auto Trait Implementations§
impl Freeze for PackageDimensions
impl RefUnwindSafe for PackageDimensions
impl Send for PackageDimensions
impl Sync for PackageDimensions
impl Unpin for PackageDimensions
impl UnsafeUnpin for PackageDimensions
impl UnwindSafe for PackageDimensions
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