ncbitaxonomy 1.0.7

Read NCBI Taxonomy Database from files and work with NCBI Taxonomy DB
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use super::schema::taxonomy;

#[derive(Queryable)]
pub struct Taxon {
    pub id: i32,
    pub ancestry: Option<String>,
    pub name: String,
    pub rank: Option<String>
}

#[derive(Insertable)]
#[table_name="taxonomy"]
pub struct NewTaxon<'a> {
    pub id: &'a i32,
    pub ancestry: Option<&'a str>,
    pub name: &'a str,
    pub rank: Option<&'a str>
}