Struct mwapi_errors::ApiError [−][src]
Expand description
Represents a raw MediaWiki API error, with a error code and error message (text). This is also used for warnings since they use the same format.
Fields
code: String
Error code
text: String
Error message
data: Option<Value>
Extra data
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for ApiError
impl UnwindSafe for ApiError
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