Skip to content

Commit abed4e8

Browse files
committed
Add missing serde rename attribute
1 parent 175a93f commit abed4e8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/errors.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ pub enum MpesaError {
5757
pub type MpesaResult<T> = Result<T, MpesaError>;
5858

5959
#[derive(Debug, Serialize, Deserialize)]
60+
#[serde(rename_all(deserialize = "camelCase"))]
6061
pub struct ApiError {
6162
pub request_id: String,
6263
pub error_code: String,

0 commit comments

Comments
 (0)