We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 175a93f + abed4e8 commit c15ac9fCopy full SHA for c15ac9f
src/errors.rs
@@ -57,6 +57,7 @@ pub enum MpesaError {
57
pub type MpesaResult<T> = Result<T, MpesaError>;
58
59
#[derive(Debug, Serialize, Deserialize)]
60
+#[serde(rename_all(deserialize = "camelCase"))]
61
pub struct ApiError {
62
pub request_id: String,
63
pub error_code: String,
0 commit comments