pub struct TrackingInformation {
pub tracking_id: String,
pub summary: Box<TrackingSummary>,
pub promised_delivery_date: String,
pub event_history: Vec<Event>,
}Expand description
TrackingInformation : The payload schema for the getTrackingInformation operation.
Fields§
§tracking_id: StringThe tracking id generated to each shipment. It contains a series of letters or digits or both.
summary: Box<TrackingSummary>§promised_delivery_date: StringThe promised delivery date and time of a shipment.
event_history: Vec<Event>A list of events of a shipment.
Implementations§
Source§impl TrackingInformation
impl TrackingInformation
Sourcepub fn new(
tracking_id: String,
summary: TrackingSummary,
promised_delivery_date: String,
event_history: Vec<Event>,
) -> TrackingInformation
pub fn new( tracking_id: String, summary: TrackingSummary, promised_delivery_date: String, event_history: Vec<Event>, ) -> TrackingInformation
The payload schema for the getTrackingInformation operation.
Trait Implementations§
Source§impl Clone for TrackingInformation
impl Clone for TrackingInformation
Source§fn clone(&self) -> TrackingInformation
fn clone(&self) -> TrackingInformation
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TrackingInformation
impl Debug for TrackingInformation
Source§impl Default for TrackingInformation
impl Default for TrackingInformation
Source§fn default() -> TrackingInformation
fn default() -> TrackingInformation
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TrackingInformation
impl<'de> Deserialize<'de> for TrackingInformation
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for TrackingInformation
impl PartialEq for TrackingInformation
Source§impl Serialize for TrackingInformation
impl Serialize for TrackingInformation
impl StructuralPartialEq for TrackingInformation
Auto Trait Implementations§
impl Freeze for TrackingInformation
impl RefUnwindSafe for TrackingInformation
impl Send for TrackingInformation
impl Sync for TrackingInformation
impl Unpin for TrackingInformation
impl UnwindSafe for TrackingInformation
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more