pub struct DistributionPackageQuantity {
pub count: i32,
pub distribution_package: Box<DistributionPackage>,
}Expand description
DistributionPackageQuantity : Represents a distribution package with its respective quantity.
Fields§
§count: i32Number of cases or pallets with the same package configuration.
distribution_package: Box<DistributionPackage>Implementations§
Source§impl DistributionPackageQuantity
impl DistributionPackageQuantity
Sourcepub fn new(
count: i32,
distribution_package: DistributionPackage,
) -> DistributionPackageQuantity
pub fn new( count: i32, distribution_package: DistributionPackage, ) -> DistributionPackageQuantity
Represents a distribution package with its respective quantity.
Trait Implementations§
Source§impl Clone for DistributionPackageQuantity
impl Clone for DistributionPackageQuantity
Source§fn clone(&self) -> DistributionPackageQuantity
fn clone(&self) -> DistributionPackageQuantity
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 DistributionPackageQuantity
impl Debug for DistributionPackageQuantity
Source§impl Default for DistributionPackageQuantity
impl Default for DistributionPackageQuantity
Source§fn default() -> DistributionPackageQuantity
fn default() -> DistributionPackageQuantity
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DistributionPackageQuantity
impl<'de> Deserialize<'de> for DistributionPackageQuantity
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
impl StructuralPartialEq for DistributionPackageQuantity
Auto Trait Implementations§
impl Freeze for DistributionPackageQuantity
impl RefUnwindSafe for DistributionPackageQuantity
impl Send for DistributionPackageQuantity
impl Sync for DistributionPackageQuantity
impl Unpin for DistributionPackageQuantity
impl UnsafeUnpin for DistributionPackageQuantity
impl UnwindSafe for DistributionPackageQuantity
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