Skip to main content

Crate use_organism

Crate use_organism 

Source
Expand description

§use-organism

Primitive organism identity and classification vocabulary.

use-organism models organism identifiers, names, broad kinds, and descriptive links to taxonomy or species primitives. The Virus kind is descriptive and does not assert whether viruses are living organisms. This crate does not create organism databases, infer taxonomy, model ecology, or model medical/pathogen behavior.

use use_organism::{OrganismClassification, OrganismKind};

let classification = OrganismClassification::new(OrganismKind::Virus);

assert_eq!(classification.kind(), &OrganismKind::Virus);
assert!(classification.taxon().is_none());

Structs§

OrganismClassification
A descriptive organism classification record.
OrganismId
A stable organism identifier string.
OrganismName
A non-empty organism name.

Enums§

OrganismKind
Broad organism vocabulary. The Virus variant is descriptive and does not assert whether viruses are living organisms.
OrganismKindParseError
Error returned when parsing organism kinds fails.
OrganismNameError
Error returned when organism labels are empty.