[−][src]Struct gnverify::Output
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]
item: ResolverNameResolverResponses,
retries: i64,
preferred_only: bool
) -> Self
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
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,