[−][src]Struct shippo::Shipment
The data type for a Shipment. FROM: https://goshippo.com/docs/reference#shipments
Fields
status: String
"Waiting" shipments have been successfully submitted but not yet been processed. "Queued" shipments are currently being processed. "Success" shipments have been processed successfully, meaning that rate generation has concluded. "Error" does not occur currently and is reserved for future use. "WAITING" | "QUEUED" | "SUCCESS" | "ERROR"
object_created: DateTime<Utc>
Date and time of Shipment creation.
object_updated: DateTime<Utc>
Date and time of last Shipment update.
object_id: String
Unique identifier of the given Shipment object.
object_owner: String
Username of the user who created the Shipment object.
address_from: Address
Address object that should be used as sender Address.
address_to: Address
Address object that should be used as recipient Address.
address_return: Address
Address object where the shipment will be sent back to if it is not delivered (Only available for UPS, USPS, and Fedex shipments). If this field is not set, your shipments will be returned to the address_from.
parcels: Vec<Parcel>
Parcel objects to be shipped.
shipment_date: DateTime<Utc>
Date the shipment will be tendered to the carrier. Must be in the format "2014-01-18T00:35:03.463Z". Defaults to current date and time if no value is provided. Please note that some carriers require this value to be in the future, on a working day, or similar.
customs_declaration: Option<CustomsDeclaration>
Customs Declarations object for an international shipment.
metadata: String
A string of up to 100 characters that can be filled with any additional information you want to attach to the object.
rates: Vec<Rate>
An array with all available rates. If async
has been set to false
in the request, this will be populated with all available rates in the
response. Otherwise rates will be created asynchronously and this array
will initially be empty.
test: bool
Indicates whether the object has been created in test mode.
Trait Implementations
impl Clone for Shipment
[src]
impl Debug for Shipment
[src]
impl<'de> Deserialize<'de> for Shipment
[src]
pub fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for Shipment
[src]
Auto Trait Implementations
impl RefUnwindSafe for Shipment
[src]
impl Send for Shipment
[src]
impl Sync for Shipment
[src]
impl Unpin for Shipment
[src]
impl UnwindSafe for Shipment
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> DynClone for T where
T: Clone,
[src]
T: Clone,
pub fn __clone_box(&self, Private) -> *mut ()
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,