pub struct TimedReservation { /* private fields */ }Implementations§
Source§impl TimedReservation
impl TimedReservation
pub fn try_new( stock: StockState, quantity: Quantity, reserved_at: Timestamp, expires_at: Timestamp, status: ReservationStatus, ) -> DomainResult<Self>
Source§impl TimedReservation
impl TimedReservation
pub fn stock(&self) -> <StockState as FieldAccess>::Output<'_>
pub fn quantity(&self) -> <Quantity as FieldAccess>::Output<'_>
pub fn reserved_at(&self) -> <Timestamp as FieldAccess>::Output<'_>
pub fn expires_at(&self) -> <Timestamp as FieldAccess>::Output<'_>
pub fn status(&self) -> <ReservationStatus as FieldAccess>::Output<'_>
Trait Implementations§
Source§impl Clone for TimedReservation
impl Clone for TimedReservation
Source§fn clone(&self) -> TimedReservation
fn clone(&self) -> TimedReservation
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 TimedReservation
impl Debug for TimedReservation
Source§impl PartialEq for TimedReservation
impl PartialEq for TimedReservation
Source§fn eq(&self, other: &TimedReservation) -> bool
fn eq(&self, other: &TimedReservation) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for TimedReservation
impl Eq for TimedReservation
impl StructuralPartialEq for TimedReservation
Auto Trait Implementations§
impl Freeze for TimedReservation
impl RefUnwindSafe for TimedReservation
impl Send for TimedReservation
impl Sync for TimedReservation
impl Unpin for TimedReservation
impl UnsafeUnpin for TimedReservation
impl UnwindSafe for TimedReservation
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