pub struct DistributionPackageContents {
pub packages: Option<Vec<DistributionPackageQuantity>>,
pub products: Option<Vec<ProductQuantity>>,
}Expand description
DistributionPackageContents : Represents the contents inside a package, which can be products or a nested package.
Fields§
§packages: Option<Vec<DistributionPackageQuantity>>This is required only when DistributionPackageType=PALLET.
products: Option<Vec<ProductQuantity>>This is required only when DistributionPackageType=CASE.
Implementations§
Source§impl DistributionPackageContents
impl DistributionPackageContents
Sourcepub fn new() -> DistributionPackageContents
pub fn new() -> DistributionPackageContents
Represents the contents inside a package, which can be products or a nested package.
Trait Implementations§
Source§impl Clone for DistributionPackageContents
impl Clone for DistributionPackageContents
Source§fn clone(&self) -> DistributionPackageContents
fn clone(&self) -> DistributionPackageContents
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 DistributionPackageContents
impl Debug for DistributionPackageContents
Source§impl Default for DistributionPackageContents
impl Default for DistributionPackageContents
Source§fn default() -> DistributionPackageContents
fn default() -> DistributionPackageContents
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DistributionPackageContents
impl<'de> Deserialize<'de> for DistributionPackageContents
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 DistributionPackageContents
Auto Trait Implementations§
impl Freeze for DistributionPackageContents
impl RefUnwindSafe for DistributionPackageContents
impl Send for DistributionPackageContents
impl Sync for DistributionPackageContents
impl Unpin for DistributionPackageContents
impl UnwindSafe for DistributionPackageContents
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