[][src]Struct papers::wikidata_papers::WikidataPapers

pub struct WikidataPapers { /* fields omitted */ }

Methods

impl WikidataPapers[src]

pub fn new() -> WikidataPapers[src]

pub fn adapters_mut(
    &mut self
) -> &mut Vec<Box<dyn ScientificPublicationAdapter>>
[src]

pub fn add_adapter(
    &mut self,
    adapter_box: Box<dyn ScientificPublicationAdapter>
)
[src]

pub fn update_item_from_adapters(
    &mut self,
    item: &mut Entity,
    adapter2work_id: &mut HashMap<usize, String>,
    mw_api: &mut Api
)
[src]

pub fn create_or_update_item_from_ids(
    &mut self,
    mw_api: &mut Api,
    ids: &Vec<GenericWorkIdentifier>
) -> Option<String>
[src]

pub fn update_from_paper_ids(
    &mut self,
    original_ids: &Vec<GenericWorkIdentifier>
) -> Vec<GenericWorkIdentifier>
[src]

pub fn get_items_for_ids(
    &self,
    mw_api: &Api,
    ids: &Vec<GenericWorkIdentifier>
) -> Vec<String>
[src]

Trait Implementations

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]

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, 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