pub struct Package {
pub dimensions: Box<Dimensions>,
pub weight: Box<Weight>,
pub insured_value: Box<Currency>,
pub is_hazmat: Option<bool>,
pub seller_display_name: Option<String>,
pub charges: Option<Vec<ChargeComponent>>,
pub package_client_reference_id: String,
pub items: Vec<Item>,
}Expand description
Package : A package to be shipped through a shipping service offering.
Fields§
§dimensions: Box<Dimensions>§weight: Box<Weight>§insured_value: Box<Currency>§is_hazmat: Option<bool>When true, the package contains hazardous materials. Defaults to false.
seller_display_name: Option<String>The seller name displayed on the label.
charges: Option<Vec<ChargeComponent>>A list of charges based on the shipping service charges applied on a package.
package_client_reference_id: StringA client provided unique identifier for a package being shipped. This value should be saved by the client to pass as a parameter to the getShipmentDocuments operation.
items: Vec<Item>A list of items.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Package
impl<'de> Deserialize<'de> for Package
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 Package
Auto Trait Implementations§
impl Freeze for Package
impl RefUnwindSafe for Package
impl Send for Package
impl Sync for Package
impl Unpin for Package
impl UnwindSafe for Package
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