pub struct LowStockItem {
pub sku: String,
pub name: String,
pub on_hand: Decimal,
pub allocated: Decimal,
pub available: Decimal,
pub reorder_point: Option<Decimal>,
pub average_daily_sales: Option<Decimal>,
pub days_of_stock: Option<Decimal>,
}Expand description
Low stock alert
Fields§
§sku: String§name: String§on_hand: DecimalCurrent on-hand quantity
allocated: DecimalAllocated (reserved) quantity
available: DecimalAvailable quantity
reorder_point: Option<Decimal>Reorder point threshold
average_daily_sales: Option<Decimal>Average daily sales
days_of_stock: Option<Decimal>Days of stock remaining
Trait Implementations§
Source§impl Clone for LowStockItem
impl Clone for LowStockItem
Source§fn clone(&self) -> LowStockItem
fn clone(&self) -> LowStockItem
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 LowStockItem
impl Debug for LowStockItem
Source§impl<'de> Deserialize<'de> for LowStockItem
impl<'de> Deserialize<'de> for LowStockItem
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<LowStockItem, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<LowStockItem, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for LowStockItem
impl Serialize for LowStockItem
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 LowStockItem
impl RefUnwindSafe for LowStockItem
impl Send for LowStockItem
impl Sync for LowStockItem
impl Unpin for LowStockItem
impl UnsafeUnpin for LowStockItem
impl UnwindSafe for LowStockItem
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