[−][src]Struct shippo::Parcel
The data type for a parcel. FROM: https://goshippo.com/docs/reference#parcels
Fields
object_state: String
A Parcel will only be valid when all required values have been sent and validated successfully. "VALID"
object_created: Option<DateTime<Utc>>
Date and time of Parcel creation.
object_updated: Option<DateTime<Utc>>
Date and time of last Parcel update. Since you cannot update Parcels after they were created, this time stamp reflects the time when the Parcel was changed by Shippo's systems for the last time, e.g., during sorting the dimensions given.
object_id: String
Unique identifier of the given Parcel object. This ID is required to create a Shipment object.
object_owner: String
Username of the user who created the Parcel object.
length: String
Length of the Parcel. Up to six digits in front and four digits after the decimal separator are accepted.
width: String
Width of the Parcel. Up to six digits in front and four digits after the decimal separator are accepted.
height: String
Height of the parcel. Up to six digits in front and four digits after the decimal separator are accepted.
distance_unit: String
The unit used for length, width and height. "cm" | "in" | "ft" | "mm" | "m" | "yd"
weight: String
Weight of the parcel. Up to six digits in front and four digits after the decimal separator are accepted.
mass_unit: String
The unit used for weight. "g" | "oz" | "lb" | "kg"
metadata: String
A string of up to 100 characters that can be filled with any additional information you want to attach to the object.
test: bool
Indicates whether the object has been created in test mode.
Trait Implementations
impl Clone for Parcel
[src]
impl Debug for Parcel
[src]
impl Default for Parcel
[src]
impl<'de> Deserialize<'de> for Parcel
[src]
pub fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for Parcel
[src]
Auto Trait Implementations
impl RefUnwindSafe for Parcel
[src]
impl Send for Parcel
[src]
impl Sync for Parcel
[src]
impl Unpin for Parcel
[src]
impl UnwindSafe for Parcel
[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>,