pub struct ProcurementRequest {
pub item_id: Uuid,
pub quantity: Decimal,
pub location_id: Uuid,
pub warehouse_id: Option<Uuid>,
pub route_ids: Option<Vec<Uuid>>,
pub origin: String,
pub orderpoint_id: Option<Uuid>,
}Expand description
A demand that needs supply pulled to a location — the entry a confirm engine (sale-stock) or a buying bridge calls; implemented here, consumed by later passes.
Fields§
§item_id: Uuid§quantity: Decimal§location_id: UuidWhere the stock is needed (the rule whose destination covers this location supplies it).
warehouse_id: Option<Uuid>§route_ids: Option<Vec<Uuid>>Explicit route candidates; None = every active route.
origin: String§orderpoint_id: Option<Uuid>The orderpoint this order answers (present when the scheduler minted it).
Trait Implementations§
Source§impl Clone for ProcurementRequest
impl Clone for ProcurementRequest
Auto Trait Implementations§
impl Freeze for ProcurementRequest
impl RefUnwindSafe for ProcurementRequest
impl Send for ProcurementRequest
impl Sync for ProcurementRequest
impl Unpin for ProcurementRequest
impl UnsafeUnpin for ProcurementRequest
impl UnwindSafe for ProcurementRequest
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more