pub struct ABCAnalysis {
pub a_items: Vec<ABCItem>,
pub b_items: Vec<ABCItem>,
pub c_items: Vec<ABCItem>,
pub a_threshold: Decimal,
pub b_threshold: Decimal,
pub summary: ABCSummary,
}Expand description
ABC Analysis result.
Fields§
§a_items: Vec<ABCItem>A items (typically 80% of value, 20% of items).
b_items: Vec<ABCItem>B items (typically 15% of value, 30% of items).
c_items: Vec<ABCItem>C items (typically 5% of value, 50% of items).
a_threshold: DecimalA threshold percentage.
b_threshold: DecimalB threshold percentage.
summary: ABCSummarySummary statistics.
Implementations§
Source§impl ABCAnalysis
impl ABCAnalysis
Sourcepub fn from_valuations(
valuations: &[MaterialValuation],
total_value: Decimal,
) -> Self
pub fn from_valuations( valuations: &[MaterialValuation], total_value: Decimal, ) -> Self
Creates ABC analysis from valuations.
Trait Implementations§
Source§impl Clone for ABCAnalysis
impl Clone for ABCAnalysis
Source§fn clone(&self) -> ABCAnalysis
fn clone(&self) -> ABCAnalysis
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 ABCAnalysis
impl Debug for ABCAnalysis
Source§impl<'de> Deserialize<'de> for ABCAnalysis
impl<'de> Deserialize<'de> for ABCAnalysis
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 ABCAnalysis
impl RefUnwindSafe for ABCAnalysis
impl Send for ABCAnalysis
impl Sync for ABCAnalysis
impl Unpin for ABCAnalysis
impl UnwindSafe for ABCAnalysis
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