pub struct Parcel {Show 13 fields
pub object_state: String,
pub object_created: Option<DateTime<Utc>>,
pub object_updated: Option<DateTime<Utc>>,
pub object_id: String,
pub object_owner: String,
pub length: String,
pub width: String,
pub height: String,
pub distance_unit: String,
pub weight: String,
pub mass_unit: String,
pub metadata: String,
pub test: bool,
}Expand description
The data type for a parcel. FROM: https://goshippo.com/docs/reference#parcels
Fields§
§object_state: StringA 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: StringUnique identifier of the given Parcel object. This ID is required to create a Shipment object.
object_owner: StringUsername of the user who created the Parcel object.
length: StringLength of the Parcel. Up to six digits in front and four digits after the decimal separator are accepted.
width: StringWidth of the Parcel. Up to six digits in front and four digits after the decimal separator are accepted.
height: StringHeight of the parcel. Up to six digits in front and four digits after the decimal separator are accepted.
distance_unit: StringThe unit used for length, width and height. “cm” | “in” | “ft” | “mm” | “m” | “yd”
weight: StringWeight of the parcel. Up to six digits in front and four digits after the decimal separator are accepted.
mass_unit: StringThe unit used for weight. “g” | “oz” | “lb” | “kg”
metadata: StringA string of up to 100 characters that can be filled with any additional information you want to attach to the object.
test: boolIndicates whether the object has been created in test mode.