pub struct TrackingEvent {
pub event_date: String,
pub event_address: Box<TrackingAddress>,
pub event_code: EventCode,
pub event_description: String,
}Expand description
TrackingEvent : Information for tracking package deliveries.
Fields
event_date: Stringevent_address: Box<TrackingAddress>event_code: EventCodeevent_description: StringA description for the corresponding event code.
Implementations
sourceimpl TrackingEvent
impl TrackingEvent
sourcepub fn new(
event_date: String,
event_address: TrackingAddress,
event_code: EventCode,
event_description: String
) -> TrackingEvent
pub fn new(
event_date: String,
event_address: TrackingAddress,
event_code: EventCode,
event_description: String
) -> TrackingEvent
Information for tracking package deliveries.
Trait Implementations
sourceimpl Clone for TrackingEvent
impl Clone for TrackingEvent
sourcefn clone(&self) -> TrackingEvent
fn clone(&self) -> TrackingEvent
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for TrackingEvent
impl Debug for TrackingEvent
sourceimpl Default for TrackingEvent
impl Default for TrackingEvent
sourcefn default() -> TrackingEvent
fn default() -> TrackingEvent
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for TrackingEvent
impl<'de> Deserialize<'de> for TrackingEvent
sourcefn 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
sourceimpl PartialEq<TrackingEvent> for TrackingEvent
impl PartialEq<TrackingEvent> for TrackingEvent
sourcefn eq(&self, other: &TrackingEvent) -> bool
fn eq(&self, other: &TrackingEvent) -> bool
sourceimpl Serialize for TrackingEvent
impl Serialize for TrackingEvent
impl StructuralPartialEq for TrackingEvent
Auto Trait Implementations
impl RefUnwindSafe for TrackingEvent
impl Send for TrackingEvent
impl Sync for TrackingEvent
impl Unpin for TrackingEvent
impl UnwindSafe for TrackingEvent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more