[][src]Struct wikibase::query::SearchQuery

pub struct SearchQuery { /* fields omitted */ }

Maps to the wbgetentities Mediawiki API

API Documentation

https://www.wikidata.org/w/api.php?action=help&modules=wbsearchentities

Example

let query = wikibase::query::SearchQuery::new("Minsk", "be", "be", 10, wikibase::EntityType::Property);

Methods

impl SearchQuery[src]

pub fn new<S: Into<String>>(
    query: S,
    lang: S,
    search_lang: S,
    limit: u64,
    entity_type: EntityType
) -> SearchQuery
[src]

pub fn entity_type(&self) -> &EntityType[src]

pub fn lang(&self) -> &str[src]

pub fn limit(&self) -> &u64[src]

pub fn query(&self) -> &str[src]

pub fn search_lang(&self) -> &str[src]

pub fn url(&self, configuration: &Configuration) -> String[src]

pub fn params(&self) -> HashMap<String, String>[src]

Trait Implementations

impl Debug for SearchQuery[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> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<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

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,