[][src]Struct papers::generic_author_info::GenericAuthorInfo

pub struct GenericAuthorInfo {
    pub name: Option<String>,
    pub prop2id: HashMap<String, String>,
    pub wikidata_item: Option<String>,
    pub list_number: Option<String>,
    pub alternative_names: Vec<String>,
}

Fields

name: Option<String>prop2id: HashMap<String, String>wikidata_item: Option<String>list_number: Option<String>alternative_names: Vec<String>

Methods

impl GenericAuthorInfo[src]

pub fn create_author_statement_in_paper_item(&self, item: &mut Entity)[src]

pub fn amend_author_item(&self, item: &mut Entity)[src]

pub fn get_or_create_author_item(&self, mw_api: &mut Api) -> GenericAuthorInfo[src]

pub fn merge_from(&mut self, author2: &GenericAuthorInfo)[src]

pub fn compare(&self, author2: &GenericAuthorInfo) -> u16[src]

pub fn update_author_item(&self, entities: &EntityContainer, mw_api: &mut Api)[src]

Trait Implementations

impl WikidataInteraction for GenericAuthorInfo[src]

fn search_wikibase(
    &self,
    query: &String,
    mw_api: &Api
) -> Result<Vec<String>, String>
[src]

fn search_external_id(
    &self,
    property: &str,
    id: &str,
    mw_api: &Api
) -> Vec<String>
[src]

fn create_item(&self, item: &Entity, mw_api: &mut Api) -> Option<String>[src]

impl Clone for GenericAuthorInfo[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl PartialEq<GenericAuthorInfo> for GenericAuthorInfo[src]

impl Debug for GenericAuthorInfo[src]

Auto Trait Implementations

Blanket Implementations

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

impl<T> Erased for T

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

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