pub struct BoxUpdateInput {
pub content_information_source: BoxContentInformationSource,
pub dimensions: Box<Dimensions>,
pub items: Option<Vec<ItemInput>>,
pub package_id: Option<String>,
pub quantity: i32,
pub weight: Box<Weight>,
}Expand description
BoxUpdateInput : Input information for updating a 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.
package_id: Option<String>Primary key to uniquely identify a Box Package. PackageId must be provided if the intent is to update an existing box. Adding a new box will not require providing this value. Any existing PackageIds not provided will be treated as to-be-removed
quantity: i32The number of containers where all other properties like weight or dimensions are identical.
weight: Box<Weight>Implementations§
Source§impl BoxUpdateInput
impl BoxUpdateInput
Sourcepub fn new(
content_information_source: BoxContentInformationSource,
dimensions: Dimensions,
quantity: i32,
weight: Weight,
) -> BoxUpdateInput
pub fn new( content_information_source: BoxContentInformationSource, dimensions: Dimensions, quantity: i32, weight: Weight, ) -> BoxUpdateInput
Input information for updating a box
Trait Implementations§
Source§impl Clone for BoxUpdateInput
impl Clone for BoxUpdateInput
Source§fn clone(&self) -> BoxUpdateInput
fn clone(&self) -> BoxUpdateInput
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 BoxUpdateInput
impl Debug for BoxUpdateInput
Source§impl Default for BoxUpdateInput
impl Default for BoxUpdateInput
Source§fn default() -> BoxUpdateInput
fn default() -> BoxUpdateInput
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BoxUpdateInput
impl<'de> Deserialize<'de> for BoxUpdateInput
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 BoxUpdateInput
impl PartialEq for BoxUpdateInput
Source§impl Serialize for BoxUpdateInput
impl Serialize for BoxUpdateInput
impl StructuralPartialEq for BoxUpdateInput
Auto Trait Implementations§
impl Freeze for BoxUpdateInput
impl RefUnwindSafe for BoxUpdateInput
impl Send for BoxUpdateInput
impl Sync for BoxUpdateInput
impl Unpin for BoxUpdateInput
impl UnsafeUnpin for BoxUpdateInput
impl UnwindSafe for BoxUpdateInput
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