pub struct TrackingEvent { /* private fields */ }Implementations§
Source§impl TrackingEvent
impl TrackingEvent
pub const fn new( id: TrackingEventId, shipment_id: ShipmentId, carrier_id: Id, tracking_number: Id, kind: TrackingEventKind, occurred_at: Timestamp, ) -> Self
pub const fn try_new( id: TrackingEventId, shipment_id: ShipmentId, carrier_id: Id, tracking_number: Id, kind: TrackingEventKind, occurred_at: Timestamp, ) -> Result<Self, ValidationError>
pub fn id(&self) -> <TrackingEventId as FieldAccess>::Output<'_>
pub fn shipment_id(&self) -> <ShipmentId as FieldAccess>::Output<'_>
pub fn carrier_id(&self) -> <Id as FieldAccess>::Output<'_>
pub fn tracking_number(&self) -> <Id as FieldAccess>::Output<'_>
pub fn kind(&self) -> <TrackingEventKind as FieldAccess>::Output<'_>
pub fn occurred_at(&self) -> <Timestamp as FieldAccess>::Output<'_>
Trait Implementations§
Source§impl Clone for TrackingEvent
impl Clone for TrackingEvent
Source§fn clone(&self) -> TrackingEvent
fn clone(&self) -> TrackingEvent
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 TrackingEvent
impl Debug for TrackingEvent
Source§impl PartialEq for TrackingEvent
impl PartialEq for TrackingEvent
Source§fn eq(&self, other: &TrackingEvent) -> bool
fn eq(&self, other: &TrackingEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for TrackingEvent
impl StructuralPartialEq for TrackingEvent
Auto Trait Implementations§
impl Freeze for TrackingEvent
impl RefUnwindSafe for TrackingEvent
impl Send for TrackingEvent
impl Sync for TrackingEvent
impl Unpin for TrackingEvent
impl UnsafeUnpin for TrackingEvent
impl UnwindSafe for TrackingEvent
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