pub struct Carton {
pub carton_identifiers: Option<Vec<ContainerIdentification>>,
pub carton_sequence_number: String,
pub dimensions: Option<Box<Dimensions>>,
pub weight: Option<Box<Weight>>,
pub tracking_number: Option<String>,
pub items: Vec<ContainerItem>,
}Expand description
Carton : Details of the carton/package being shipped.
Fields§
§carton_identifiers: Option<Vec<ContainerIdentification>>A list of carton identifiers.
carton_sequence_number: StringCarton sequence number for the carton. The first carton will be 001, the second 002, and so on. This number is used as a reference to refer to this carton from the pallet level.
dimensions: Option<Box<Dimensions>>§weight: Option<Box<Weight>>§tracking_number: Option<String>This is required to be provided for every carton in the small parcel shipments.
items: Vec<ContainerItem>A list of container item details.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Carton
impl<'de> Deserialize<'de> for Carton
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 Carton
Auto Trait Implementations§
impl Freeze for Carton
impl RefUnwindSafe for Carton
impl Send for Carton
impl Sync for Carton
impl Unpin for Carton
impl UnwindSafe for Carton
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