pub struct Classification { /* private fields */ }Expand description
The categories of one access, their bases, and the evidence.
Only CategoryMap::classify makes one, and every one it makes holds a
category, is of no category by an exact none or a resource kind, or is
unclassified with its reason: it has no
Default, so no empty classification can stand in for a missing one.
Debug shows the categories and the marks, never an id: a template id
tied to a patient says what kind of care they had.
Implementations§
Source§impl Classification
impl Classification
Sourcepub fn categories(&self) -> &BTreeMap<Category, BTreeSet<Basis>>
pub fn categories(&self) -> &BTreeMap<Category, BTreeSet<Basis>>
The categories, each with what it was read from.
Sourcepub fn is_no_category(&self) -> bool
pub fn is_no_category(&self) -> bool
Whether the access reached a resource of no category, or only data
the map declares none, and nothing unclassified.
Sourcepub fn no_category_kinds(&self) -> &BTreeSet<ResourceKind>
pub fn no_category_kinds(&self) -> &BTreeSet<ResourceKind>
The kinds of resource of no category the access reached, each the
basis Basis::ResourceKind of its “no category”.
Sourcepub fn evidence_counts(&self) -> EvidenceCounts
pub fn evidence_counts(&self) -> EvidenceCounts
How many distinct ids each evidence set held; a set holds fewer when the map’s evidence limit cut it.
Sourcepub fn unclassified(&self) -> Option<&Unclassified>
pub fn unclassified(&self) -> Option<&Unclassified>
Why the access, or a part of it, is unclassified; None when the
map classified all of it.
Sourcepub fn archetypes(&self) -> &BTreeSet<String>
pub fn archetypes(&self) -> &BTreeSet<String>
The archetype ids of the evidence.