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: LocationIdLocation whose shelves or retail stockroom own this inventory count.
sku: SkuSKU whose on-hand, reserved, and reorder quantities are being evaluated.
on_hand: OnHandUnitsPhysical units counted at the location before reservations or holds are subtracted.
reserved: ReservedUnitsUnits held for checkout, service bundles, or staff workflows before sale availability is calculated.
reorder_at: UnitCountMinimum available units that should prompt manager or vendor reorder attention.
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