pub struct ShipmentEvent {
pub id: Uuid,
pub shipment_id: ShipmentId,
pub event_type: String,
pub location: Option<String>,
pub description: Option<String>,
pub event_time: DateTime<Utc>,
pub created_at: DateTime<Utc>,
}Expand description
A tracking event in a shipment’s history
Fields§
§id: Uuid§shipment_id: ShipmentId§event_type: StringType of event (e.g., “picked_up”, “departed_facility”, “arrived_at_hub”)
location: Option<String>Location where event occurred
description: Option<String>Description of the event
event_time: DateTime<Utc>When the event occurred (may differ from created_at for imported events)
created_at: DateTime<Utc>Trait Implementations§
Source§impl Clone for ShipmentEvent
impl Clone for ShipmentEvent
Source§fn clone(&self) -> ShipmentEvent
fn clone(&self) -> ShipmentEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ShipmentEvent
impl Debug for ShipmentEvent
Source§impl<'de> Deserialize<'de> for ShipmentEvent
impl<'de> Deserialize<'de> for ShipmentEvent
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ShipmentEvent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ShipmentEvent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for ShipmentEvent
impl Serialize for ShipmentEvent
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for ShipmentEvent
impl RefUnwindSafe for ShipmentEvent
impl Send for ShipmentEvent
impl Sync for ShipmentEvent
impl Unpin for ShipmentEvent
impl UnsafeUnpin for ShipmentEvent
impl UnwindSafe for ShipmentEvent
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