pub struct Stock {
pub location_id: LocationId,
pub sku: Sku,
pub on_hand: OnHandUnits,
pub reserved: ReservedUnits,
pub reorder_at: UnitCount,
}Expand description
Source stock record promoted from POS/inventory data before invariant checks are applied.
Fields§
§location_id: LocationIdSource-derived location id carried by this retail contract.
sku: SkuSource-derived sku carried by this retail contract.
on_hand: OnHandUnitsSource-derived on hand carried by this retail contract.
reserved: ReservedUnitsSource-derived reserved carried by this retail contract.
reorder_at: UnitCountSource-derived reorder at carried by this retail contract.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Stock
impl<'de> Deserialize<'de> for Stock
Source§fn 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
impl Eq for Stock
impl StructuralPartialEq for Stock
Auto Trait Implementations§
impl Freeze for Stock
impl RefUnwindSafe for Stock
impl Send for Stock
impl Sync for Stock
impl Unpin for Stock
impl UnsafeUnpin for Stock
impl UnwindSafe for Stock
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