pub struct VerdictSummary {
pub counts: HashMap<TasteVerdict, u64>,
pub total: u64,
}Expand description
Aggregated verdict counts across multiple taste reports.
Fields§
§counts: HashMap<TasteVerdict, u64>§total: u64Implementations§
Source§impl VerdictSummary
impl VerdictSummary
Sourcepub fn from_tastes(tastes: &[Taste]) -> Self
pub fn from_tastes(tastes: &[Taste]) -> Self
Aggregate verdict counts from a slice of Taste manifests.
Sourcepub fn to_json_map(&self) -> Map<String, Value>
pub fn to_json_map(&self) -> Map<String, Value>
Produce a JSON-friendly map of verdict name → count (all verdicts present, defaulting to 0).
Trait Implementations§
Source§impl Clone for VerdictSummary
impl Clone for VerdictSummary
Source§fn clone(&self) -> VerdictSummary
fn clone(&self) -> VerdictSummary
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 VerdictSummary
impl Debug for VerdictSummary
Source§impl<'de> Deserialize<'de> for VerdictSummary
impl<'de> Deserialize<'de> for VerdictSummary
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 VerdictSummary
impl RefUnwindSafe for VerdictSummary
impl Send for VerdictSummary
impl Sync for VerdictSummary
impl Unpin for VerdictSummary
impl UnsafeUnpin for VerdictSummary
impl UnwindSafe for VerdictSummary
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