pub enum Decision {
NoAction,
CreateStaffTask {
location_id: LocationId,
sku: Sku,
reason: Reason,
gate: ReviewGate,
},
ManagerReviewRequired {
reason: Reason,
gate: ReviewGate,
},
VendorManagedNotice {
sku: Sku,
reason: Reason,
},
}Expand description
Reorder decision produced when available units are at or below threshold.
Variants§
NoAction
Available stock remains above threshold, so no staff or vendor follow-up is needed.
CreateStaffTask
Creates a human task with location, SKU, reason, and manager approval gate for reorder follow-up.
Fields
§
location_id: LocationIdLocation where staff should inspect stock or complete the reorder task.
§
gate: ReviewGateManager approval gate required before staff treat the reorder task as authorized.
ManagerReviewRequired
Low-stock finding requires manager approval before any purchasing or vendor action.
Fields
§
gate: ReviewGateManager approval gate required before staff treat the reorder task as authorized.
VendorManagedNotice
Vendor-managed item produces a notice for review rather than an automatic order.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Decision
impl<'de> Deserialize<'de> for Decision
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 Decision
impl StructuralPartialEq for Decision
Auto Trait Implementations§
impl Freeze for Decision
impl RefUnwindSafe for Decision
impl Send for Decision
impl Sync for Decision
impl Unpin for Decision
impl UnsafeUnpin for Decision
impl UnwindSafe for Decision
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