[][src]Trait papers::WikidataInteraction

pub trait WikidataInteraction {
    fn search_wikibase(
        &self,
        query: &String,
        mw_api: &Api
    ) -> Result<Vec<String>, String> { ... }
fn search_external_id(
        &self,
        property: &str,
        id: &str,
        mw_api: &Api
    ) -> Vec<String> { ... }
fn create_item(&self, item: &Entity, mw_api: &mut Api) -> Option<String> { ... } }

Provided methods

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

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

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

Loading content...

Implementors

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 WikidataInteraction for WikidataPapers[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 WikidataInteraction for WikidataPapersCache[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]

Loading content...