Crate mwapi_errors[−][src]
Expand description
MediaWiki API error types
The MediaWIki API is rather dynamic and has quite a few possible errors that you can run into. This crate aims to have dedicated types for each possible case as well as a conversion map between the API’s error codes and Rust types.
The from
feature can be disabled to remove some dependencies that are
used to implement the From
trait. Each dependency can be individually
toggled with a feature named from-{dependency}
. Current features are:
from-reqwest
from-serde_json
from-tokio
Structs
Represents a raw MediaWiki API error, with a error code and error message (text).
Enums
Primary error class