pub struct FIFOTracker {
pub material_id: String,
pub layers: VecDeque<FIFOLayer>,
pub total_quantity: Decimal,
pub total_value: Decimal,
}Expand description
FIFO inventory tracker.
Fields§
§material_id: StringMaterial ID.
layers: VecDeque<FIFOLayer>Layers (oldest first).
total_quantity: DecimalTotal quantity.
total_value: DecimalTotal value.
Implementations§
Trait Implementations§
Source§impl Clone for FIFOTracker
impl Clone for FIFOTracker
Source§fn clone(&self) -> FIFOTracker
fn clone(&self) -> FIFOTracker
Returns a duplicate of the value. Read more
1.0.0 · 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 FIFOTracker
impl Debug for FIFOTracker
Source§impl<'de> Deserialize<'de> for FIFOTracker
impl<'de> Deserialize<'de> for FIFOTracker
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
Auto Trait Implementations§
impl Freeze for FIFOTracker
impl RefUnwindSafe for FIFOTracker
impl Send for FIFOTracker
impl Sync for FIFOTracker
impl Unpin for FIFOTracker
impl UnwindSafe for FIFOTracker
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