pub struct CycleCount {
pub count_id: String,
pub company_code: String,
pub warehouse_id: String,
pub count_date: NaiveDate,
pub status: CycleCountStatus,
pub counter_id: Option<String>,
pub supervisor_id: Option<String>,
pub items: Vec<CycleCountItem>,
pub total_items_counted: u32,
pub total_variances: u32,
pub variance_rate: f64,
}Expand description
A cycle count event covering one or more inventory items.
Fields§
§count_id: StringUnique cycle count identifier
company_code: StringCompany code this count belongs to
warehouse_id: StringWarehouse where the count takes place
count_date: NaiveDateDate the count is performed
status: CycleCountStatusCurrent status of the cycle count
counter_id: Option<String>Employee performing the count
supervisor_id: Option<String>Supervisor overseeing the count
items: Vec<CycleCountItem>Individual items counted
total_items_counted: u32Total number of items counted
total_variances: u32Total number of items with variances
variance_rate: f64Overall variance rate (total_variances / total_items_counted)
Trait Implementations§
Source§impl Clone for CycleCount
impl Clone for CycleCount
Source§fn clone(&self) -> CycleCount
fn clone(&self) -> CycleCount
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 CycleCount
impl Debug for CycleCount
Source§impl<'de> Deserialize<'de> for CycleCount
impl<'de> Deserialize<'de> for CycleCount
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 CycleCount
impl RefUnwindSafe for CycleCount
impl Send for CycleCount
impl Sync for CycleCount
impl Unpin for CycleCount
impl UnwindSafe for CycleCount
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