Struct mwapi::client::Client [−][src]
pub struct Client { /* fields omitted */ }
Implementations
Get a Builder
instance to further customize the API Client
.
The API URL should be the absolute path to api.php.
Same as Client::builder
, but with defaults tuned for interactive operation.
Get an API Client
instance. The API URL should be the absolute
path to api.php.
Same as get()
, but return a serde_json::Value
Make an arbitrary API request using HTTP GET.
Make an API POST request with a CSRF token. The correct token will automatically be fetched, and in case of a bad token error (if it expired), a new one will automatically be fetched and the request retried.
Make an API POST request
Get access to the underlying reqwest::Client
to make arbitrary
GET/POST requests, sharing the connection pool and cookie storage.
For example, if you wanted to download images from the wiki.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Client
impl !UnwindSafe for Client
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more