diff --git a/src/api_traits.rs b/src/api_traits.rs index eaeffa7..fbc430e 100644 --- a/src/api_traits.rs +++ b/src/api_traits.rs @@ -22,12 +22,14 @@ pub struct MethodResponse { pub description: Option, } -#[derive(Debug, Serialize, Deserialize, PartialEq, Eq)] -/// \[…\] an unsuccessful request, `ok` equals false and the error is explained in the `description`. +/// Error on an unsuccessful request. +/// +/// `ok` equals false and the error is explained in the `description`. /// An Integer `error_code` field is also returned, but its contents are subject to change in the future. /// Some errors may also have an optional field `parameters` of the type `ResponseParameters`, which can help to automatically handle the error. /// /// See +#[derive(Debug, Serialize, Deserialize, PartialEq, Eq)] pub struct ErrorResponse { /// Always false pub ok: bool,