[][src]Struct gnverify::Output

pub struct Output {
    pub name: String,
    pub match_type: MatchType,
    pub data_sources_num: i64,
    pub data_source_curation: Option<CurationType>,
    pub retries: i64,
    pub error: Option<String>,
    pub best_result: Option<ResultData>,
    pub preferred_results: Option<Vec<ResultData>>,
}

A serializabe to JSON output format from verification process by gnindex server

Fields

name: String

Name-string supplied by user for verification.

match_type: MatchType

Match type of the best result after verification attempt.

data_sources_num: i64

The number of Data Sources that could be matched to the name-string.

data_source_curation: Option<CurationType>

Indicates if the name was matched to Data Sources with human or automatic curation of the data.

retries: i64

How many retries were needed to send the name-string to gnindex server.

error: Option<String>

Contains an error string (if any) after verification attempt.

best_result: Option<ResultData>

The apparent best match of the name-string to gnindex data sets. The best match is determined by a score that takes in account if the match was exact, partial, or fuzzy, if it was a match of uninomial, binomial, or multinomial, if there authors matched in the name-string and gnindex data.

preferred_results: Option<Vec<ResultData>>

Contains all matches found in the user-specified Data Sources.

Methods

impl Output[src]

pub fn new<'b>(
    item: ResolverNameResolverResponses,
    retries: i64,
    preferred_only: bool
) -> Self
[src]

Creates a new output using verification data returned from gnindex server.

pub fn to_csv(&self, preferred_only: bool) -> Vec<OutputCSV>[src]

Converts output data to a structure for CSV format.

Trait Implementations

impl Debug for Output[src]

impl Default for Output[src]

impl Serialize for Output[src]

Auto Trait Implementations

impl RefUnwindSafe for Output

impl Send for Output

impl Sync for Output

impl Unpin for Output

impl UnwindSafe for Output

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err