Crate gnverify

Source
Expand description

Takes a name or a list of names and verifies them against a variety of biodiversity Data Sources

§Example

use gnverify::{GNVerify, Input, MatchType};

let gnv = GNVerify::new();
let inputs: Vec<Input> = vec![Input{id: None, name: "Homo sapiens".to_owned()}];
let outputs = gnv.verify(&inputs);
assert_eq!(outputs.len(), 1);
if let Some(output) = outputs.iter().next() {
    assert_eq!(output.match_type.to_string(), "Exact".to_owned());
}

Re-exports§

pub use format::Format;

Modules§

format
format determines output format for name verification. It can be set to CSV, JSON, and Pretty JSON.
io
Traits, helpers, and type definitions for core I/O functionality.

Structs§

GNVerify
Keeps configuration parameters and organizes main functions for changing configuration and performing name-strings verification and formatting of verification output.
Input
The input format to send to gnindex server.
Output
A serializabe to JSON output format from verification process by gnindex server

Enums§

GNVerifyError
List of error types used in the library.
MatchType
Describes a match type of a successful verification attempt.