pub struct Package {
pub scheduled_package_id: Box<ScheduledPackageId>,
pub package_dimensions: Box<Dimensions>,
pub package_weight: Box<Weight>,
pub package_items: Option<Vec<Item>>,
pub package_time_slot: Box<TimeSlot>,
pub package_identifier: Option<String>,
pub invoice: Option<Box<InvoiceData>>,
pub package_status: Option<PackageStatus>,
pub tracking_details: Option<Box<TrackingDetails>>,
}Expand description
Package : A package. This object contains all the details of the scheduled Easy Ship package including the package identifier, physical attributes such as dimensions and weight, selected time slot to handover the package to carrier, status of the package, and tracking/invoice details.
Fields
scheduled_package_id: Box<ScheduledPackageId>package_dimensions: Box<Dimensions>package_weight: Box<Weight>package_items: Option<Vec<Item>>A list of items contained in the package.
package_time_slot: Box<TimeSlot>package_identifier: Option<String>Optional seller-created identifier that is printed on the shipping label to help the seller identify the package.
invoice: Option<Box<InvoiceData>>package_status: Option<PackageStatus>tracking_details: Option<Box<TrackingDetails>>Implementations
sourceimpl Package
impl Package
sourcepub fn new(
scheduled_package_id: ScheduledPackageId,
package_dimensions: Dimensions,
package_weight: Weight,
package_time_slot: TimeSlot
) -> Package
pub fn new(
scheduled_package_id: ScheduledPackageId,
package_dimensions: Dimensions,
package_weight: Weight,
package_time_slot: TimeSlot
) -> Package
A package. This object contains all the details of the scheduled Easy Ship package including the package identifier, physical attributes such as dimensions and weight, selected time slot to handover the package to carrier, status of the package, and tracking/invoice details.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Package
impl<'de> Deserialize<'de> for Package
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 Package
Auto Trait Implementations
impl RefUnwindSafe for Package
impl Send for Package
impl Sync for Package
impl Unpin for Package
impl UnwindSafe for Package
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