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