pub struct DemandForecast {
pub sku: String,
pub name: String,
pub average_daily_demand: Decimal,
pub forecasted_demand: Decimal,
pub confidence: Decimal,
pub current_stock: Decimal,
pub days_until_stockout: Option<i32>,
pub recommended_reorder_qty: Option<Decimal>,
pub recommended_reorder_date: Option<DateTime<Utc>>,
pub trend: Trend,
}Expand description
Demand forecast for a SKU
Fields§
§sku: String§name: String§average_daily_demand: DecimalHistorical average daily demand
forecasted_demand: DecimalForecasted demand for next period
confidence: DecimalConfidence level (0-1)
current_stock: DecimalCurrent stock
days_until_stockout: Option<i32>Days until stockout (if no reorder)
recommended_reorder_qty: Option<Decimal>Recommended reorder quantity
recommended_reorder_date: Option<DateTime<Utc>>Recommended reorder date
trend: TrendTrend direction
Trait Implementations§
Source§impl Clone for DemandForecast
impl Clone for DemandForecast
Source§fn clone(&self) -> DemandForecast
fn clone(&self) -> DemandForecast
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DemandForecast
impl Debug for DemandForecast
Source§impl<'de> Deserialize<'de> for DemandForecast
impl<'de> Deserialize<'de> for DemandForecast
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<DemandForecast, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<DemandForecast, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for DemandForecast
impl Serialize for DemandForecast
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for DemandForecast
impl RefUnwindSafe for DemandForecast
impl Send for DemandForecast
impl Sync for DemandForecast
impl Unpin for DemandForecast
impl UnsafeUnpin for DemandForecast
impl UnwindSafe for DemandForecast
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