pub struct Container {
pub container_type: Option<ContainerType>,
pub container_reference_id: String,
pub value: Box<Currency>,
pub dimensions: Box<Dimensions>,
pub items: Vec<ContainerItem>,
pub weight: Box<Weight>,
}Expand description
Container : Container in the shipment.
Fields§
§container_type: Option<ContainerType>The type of physical container being used. (always ‘PACKAGE’)
container_reference_id: StringAn identifier for the container. This must be unique within all the containers in the same shipment.
value: Box<Currency>§dimensions: Box<Dimensions>§items: Vec<ContainerItem>A list of the items in the container.
weight: Box<Weight>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Container
impl<'de> Deserialize<'de> for Container
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 Container
Auto Trait Implementations§
impl Freeze for Container
impl RefUnwindSafe for Container
impl Send for Container
impl Sync for Container
impl Unpin for Container
impl UnwindSafe for Container
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