pub struct Container {
pub container_type: ContainerType,
pub container_identifier: String,
pub tracking_number: Option<String>,
pub manifest_id: Option<String>,
pub manifest_date: Option<String>,
pub ship_method: Option<String>,
pub scac_code: Option<String>,
pub carrier: Option<String>,
pub container_sequence_number: Option<i32>,
pub dimensions: Option<Box<Dimensions>>,
pub weight: Option<Box<Weight>>,
pub packed_items: Vec<PackedItem>,
}Fields
container_type: ContainerTypeThe type of container.
container_identifier: StringThe container identifier.
tracking_number: Option<String>The tracking number.
manifest_id: Option<String>The manifest identifier.
manifest_date: Option<String>The date of the manifest.
ship_method: Option<String>The shipment method.
scac_code: Option<String>SCAC code required for NA VOC vendors only.
carrier: Option<String>Carrier required for EU VOC vendors only.
container_sequence_number: Option<i32>An integer that must be submitted for multi-box shipments only, where one item may come in separate packages.
dimensions: Option<Box<Dimensions>>weight: Option<Box<Weight>>packed_items: Vec<PackedItem>A list of packed items.
Implementations
sourceimpl Container
impl Container
pub fn new(
container_type: ContainerType,
container_identifier: String,
packed_items: Vec<PackedItem>
) -> Container
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Container
impl<'de> Deserialize<'de> for Container
sourcefn 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 RefUnwindSafe for Container
impl Send for Container
impl Sync for Container
impl Unpin for Container
impl UnwindSafe for Container
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more