pub struct TrackingStatus {
pub carrier: String,
pub tracking_number: String,
pub address_from: Option<Address>,
pub address_to: Option<Address>,
pub transaction: String,
pub eta: Option<DateTime<Utc>>,
pub original_eta: Option<DateTime<Utc>>,
pub servicelevel: ServiceLevel,
pub tracking_status: Option<Status>,
pub tracking_history: Vec<Status>,
pub metadata: String,
}Expand description
The data type for a tracking status. Tracking Status objects are used to track shipments. FROM: https://goshippo.com/docs/reference#tracks
Fields§
§carrier: StringName of the carrier of the shipment to track.
tracking_number: StringTracking number to track.
address_from: Option<Address>The sender address with city, state, zip and country information.
address_to: Option<Address>The recipient address with city, state, zip and country information.
transaction: StringThe object_id of the transaction associated with this tracking object. This field is visible only to the object owner of the transaction.
eta: Option<DateTime<Utc>>The estimated time of arrival according to the carrier, this might be updated by carriers during the life of the shipment.
original_eta: Option<DateTime<Utc>>The estimated time of arrival according to the carrier at the time the shipment first entered the system.
servicelevel: ServiceLevelThe service level of the shipment as token and full name.
tracking_status: Option<Status>The latest tracking information of this shipment.
tracking_history: Vec<Status>A list of tracking events, following the same structure as tracking_status.
It contains a full history of all tracking statuses, starting with the earlier tracking event first.
metadata: StringA string of up to 100 characters that can be filled with any additional information you want to attach to the object.
Trait Implementations§
Source§impl Clone for TrackingStatus
impl Clone for TrackingStatus
Source§fn clone(&self) -> TrackingStatus
fn clone(&self) -> TrackingStatus
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TrackingStatus
impl Debug for TrackingStatus
Source§impl Default for TrackingStatus
impl Default for TrackingStatus
Source§fn default() -> TrackingStatus
fn default() -> TrackingStatus
Source§impl<'de> Deserialize<'de> for TrackingStatus
impl<'de> Deserialize<'de> for TrackingStatus
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>,
Source§impl JsonSchema for TrackingStatus
impl JsonSchema for TrackingStatus
Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref keyword. Read more