pub struct VendorQualityScore {
pub delivery_score: f64,
pub quality_score: f64,
pub invoice_accuracy_score: f64,
pub responsiveness_score: f64,
pub last_evaluation: NaiveDate,
pub evaluation_count: u32,
}Expand description
Vendor quality score based on multiple dimensions.
Fields§
§delivery_score: f64Delivery performance (0.0 - 1.0)
quality_score: f64Quality of goods/services (0.0 - 1.0)
invoice_accuracy_score: f64Invoice accuracy (0.0 - 1.0)
responsiveness_score: f64Responsiveness (0.0 - 1.0)
last_evaluation: NaiveDateLast evaluation date
evaluation_count: u32Number of evaluations
Implementations§
Source§impl VendorQualityScore
impl VendorQualityScore
Sourcepub fn overall_score(&self) -> f64
pub fn overall_score(&self) -> f64
Calculate overall quality score (weighted average).
Trait Implementations§
Source§impl Clone for VendorQualityScore
impl Clone for VendorQualityScore
Source§fn clone(&self) -> VendorQualityScore
fn clone(&self) -> VendorQualityScore
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 VendorQualityScore
impl Debug for VendorQualityScore
Source§impl Default for VendorQualityScore
impl Default for VendorQualityScore
Source§impl<'de> Deserialize<'de> for VendorQualityScore
impl<'de> Deserialize<'de> for VendorQualityScore
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 VendorQualityScore
impl RefUnwindSafe for VendorQualityScore
impl Send for VendorQualityScore
impl Sync for VendorQualityScore
impl Unpin for VendorQualityScore
impl UnsafeUnpin for VendorQualityScore
impl UnwindSafe for VendorQualityScore
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.