pub struct Store {Show 13 fields
pub items: Arc<Mutex<HashMap<String, Item>>>,
pub locations: Arc<Mutex<HashMap<String, Location>>>,
pub stock: Arc<Mutex<Vec<StockLevel>>>,
pub movements: Arc<Mutex<Vec<StockMovement>>>,
pub bom: Arc<Mutex<Vec<BomEntry>>>,
pub reservations: Arc<Mutex<Vec<Reservation>>>,
pub pick_orders: Arc<Mutex<HashMap<String, PickOrder>>>,
pub putaway_rules: Arc<Mutex<Vec<PutawayRule>>>,
pub cycle_counts: Arc<Mutex<Vec<CycleCount>>>,
pub waves: Arc<Mutex<HashMap<String, Wave>>>,
pub labels: Arc<Mutex<Vec<BarcodeLabel>>>,
pub serialized: Arc<Mutex<HashMap<String, SerializedItem>>>,
pub rfid_tags: Arc<Mutex<HashMap<String, RfidTag>>>,
}Fields§
§items: Arc<Mutex<HashMap<String, Item>>>§locations: Arc<Mutex<HashMap<String, Location>>>§stock: Arc<Mutex<Vec<StockLevel>>>§movements: Arc<Mutex<Vec<StockMovement>>>§bom: Arc<Mutex<Vec<BomEntry>>>§reservations: Arc<Mutex<Vec<Reservation>>>§pick_orders: Arc<Mutex<HashMap<String, PickOrder>>>§putaway_rules: Arc<Mutex<Vec<PutawayRule>>>§cycle_counts: Arc<Mutex<Vec<CycleCount>>>§waves: Arc<Mutex<HashMap<String, Wave>>>§labels: Arc<Mutex<Vec<BarcodeLabel>>>§serialized: Arc<Mutex<HashMap<String, SerializedItem>>>Implementations§
Source§impl Store
impl Store
pub fn new() -> Self
pub fn get_stock(&self, sku: &str, location_id: Option<&str>) -> Vec<StockLevel>
pub fn available_qty(&self, sku: &str, location_id: &str) -> f64
pub fn record_movement(&self, m: StockMovement)
pub fn new_movement_id() -> String
pub fn new_location_id() -> String
pub fn new_reservation_id() -> String
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Store
impl RefUnwindSafe for Store
impl Send for Store
impl Sync for Store
impl Unpin for Store
impl UnsafeUnpin for Store
impl UnwindSafe for Store
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