pub struct BoxInput {
pub content_information_source: BoxContentInformationSource,
pub dimensions: Box<Dimensions>,
pub items: Option<Vec<ItemInput>>,
pub quantity: i32,
pub weight: Box<Weight>,
}Expand description
BoxInput : Input information for a given box.
Fields§
§content_information_source: BoxContentInformationSource§dimensions: Box<Dimensions>§items: Option<Vec<ItemInput>>The items and their quantity in the box. This must be empty if the box contentInformationSource is BARCODE_2D or MANUAL_PROCESS.
quantity: i32The number of containers where all other properties like weight or dimensions are identical.
weight: Box<Weight>Implementations§
Source§impl BoxInput
impl BoxInput
Sourcepub fn new(
content_information_source: BoxContentInformationSource,
dimensions: Dimensions,
quantity: i32,
weight: Weight,
) -> BoxInput
pub fn new( content_information_source: BoxContentInformationSource, dimensions: Dimensions, quantity: i32, weight: Weight, ) -> BoxInput
Input information for a given box.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for BoxInput
impl<'de> Deserialize<'de> for BoxInput
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 BoxInput
Auto Trait Implementations§
impl Freeze for BoxInput
impl RefUnwindSafe for BoxInput
impl Send for BoxInput
impl Sync for BoxInput
impl Unpin for BoxInput
impl UnsafeUnpin for BoxInput
impl UnwindSafe for BoxInput
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