pub struct HierarchicalMatchResult {Show 14 fields
pub distribution_id: String,
pub display_name: String,
pub assembly_id: String,
pub assembly_name: String,
pub version_id: String,
pub version_string: String,
pub match_type: MatchType,
pub score: f64,
pub matched_contigs: usize,
pub total_query_contigs: usize,
pub total_distribution_contigs: usize,
pub presence_counts: PresenceCounts,
pub extra_in_query: usize,
pub missing_from_query: usize,
}Expand description
Result of matching against the hierarchical catalog
Fields§
§distribution_id: StringThe matched distribution
display_name: StringDisplay name of the distribution
assembly_id: StringAssembly ID (empty for standalone distributions)
assembly_name: StringAssembly name
version_id: StringVersion ID
version_string: StringVersion string
match_type: MatchTypeMatch type
score: f64Match score (0.0 - 1.0)
matched_contigs: usizeNumber of query contigs matched
total_query_contigs: usizeTotal query contigs
total_distribution_contigs: usizeNumber of distribution contigs
presence_counts: PresenceCountsPresence breakdown
extra_in_query: usizeExtra contigs in query not in distribution
missing_from_query: usizeMissing contigs from query that are in distribution
Implementations§
Source§impl HierarchicalMatchResult
impl HierarchicalMatchResult
Sourcepub fn match_percentage(&self) -> f64
pub fn match_percentage(&self) -> f64
Get match percentage
Trait Implementations§
Source§impl Clone for HierarchicalMatchResult
impl Clone for HierarchicalMatchResult
Source§fn clone(&self) -> HierarchicalMatchResult
fn clone(&self) -> HierarchicalMatchResult
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 moreAuto Trait Implementations§
impl Freeze for HierarchicalMatchResult
impl RefUnwindSafe for HierarchicalMatchResult
impl Send for HierarchicalMatchResult
impl Sync for HierarchicalMatchResult
impl Unpin for HierarchicalMatchResult
impl UnwindSafe for HierarchicalMatchResult
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