Struct wikibase::Configuration
[−]
[src]
pub struct Configuration { /* fields omitted */ }Configurations for Wikibase RS
The Configuration struct holds all the parameters that can can be customized. The api_url is the api endpoint or a particular Wikibase instance. It defaults to Wikidata.
Methods
impl Configuration[src]
fn new(user_agent_prefix: &str) -> Result<Configuration, WikibaseError>[src]
fn api_url(&self) -> &str[src]
fn set_api_url<S: Into<String>>(&mut self, api_url: S)[src]
fn user_agent(&self) -> String[src]
Returns the complete user agent that is used for requests
The full user agent is a combination of the user agent prefix,
that is set by a library and the Wikibase RS user agent.
For example: my_bot/0.2 Wikibase-RS/1.0.2.