pub struct InventoryLot { /* private fields */ }Implementations§
Source§impl InventoryLot
impl InventoryLot
pub const fn new( sku: Sku, lot_id: Id, warehouse: Warehouse, expires_at: Timestamp, quantity: Quantity, ) -> Self
pub const fn try_new( sku: Sku, lot_id: Id, warehouse: Warehouse, expires_at: Timestamp, quantity: Quantity, ) -> Result<Self, ValidationError>
pub fn sku(&self) -> <Sku as FieldAccess>::Output<'_>
pub fn lot_id(&self) -> <Id as FieldAccess>::Output<'_>
pub fn warehouse(&self) -> <Warehouse as FieldAccess>::Output<'_>
pub fn expires_at(&self) -> <Timestamp as FieldAccess>::Output<'_>
pub fn quantity(&self) -> <Quantity as FieldAccess>::Output<'_>
Trait Implementations§
Source§impl Clone for InventoryLot
impl Clone for InventoryLot
Source§fn clone(&self) -> InventoryLot
fn clone(&self) -> InventoryLot
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 InventoryLot
impl Debug for InventoryLot
Source§impl PartialEq for InventoryLot
impl PartialEq for InventoryLot
Source§fn eq(&self, other: &InventoryLot) -> bool
fn eq(&self, other: &InventoryLot) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for InventoryLot
impl StructuralPartialEq for InventoryLot
Auto Trait Implementations§
impl Freeze for InventoryLot
impl RefUnwindSafe for InventoryLot
impl Send for InventoryLot
impl Sync for InventoryLot
impl Unpin for InventoryLot
impl UnsafeUnpin for InventoryLot
impl UnwindSafe for InventoryLot
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