[−][src]Struct wikibase::Configuration
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]
pub fn new(user_agent_prefix: &str) -> Result<Configuration, WikibaseError>
[src]
pub fn api_mut(&mut self) -> &mut Api
[src]
pub fn api(&self) -> &Api
[src]
pub fn api_url(&self) -> &str
[src]
pub fn set_api_url<S: Into<String>>(&mut self, api_url: S)
[src]
pub 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
.
pub fn user_agent_prefix(&self) -> &str
[src]
Trait Implementations
impl Clone for Configuration
[src]
fn clone(&self) -> Configuration
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Configuration
[src]
Auto Trait Implementations
impl Send for Configuration
impl Sync for Configuration
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Erased for T
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,