Currently all struct fields for transaction and request models are serialized from sake_case to PascalCase. This is a problem because fields like flags for transactions and account for requests both need to be lowercase, but when serializing they get renamed to Flags and Account, which is invalid. I tried using #[serde(rename = "flags")], but #[serde(rename_all(serialize = "PascalCase", deserialize = "snake_case"))] seems to have a higher priority. It is possible to build custom Serialize implementations, but I could not figure out a good way to do it, yet.
Currently all struct fields for transaction and request models are serialized from
sake_case
toPascalCase
. This is a problem because fields likeflags
for transactions andaccount
for requests both need to be lowercase, but when serializing they get renamed toFlags
andAccount
, which is invalid. I tried using#[serde(rename = "flags")]
, but#[serde(rename_all(serialize = "PascalCase", deserialize = "snake_case"))]
seems to have a higher priority. It is possible to build customSerialize
implementations, but I could not figure out a good way to do it, yet.