TristanBlackwell / twilly

Minimal Twilio API & CLI built in Rust
https://crates.io/crates/twilly
3 stars 1 forks source link

Standardise JSON data #8

Open TristanBlackwell opened 6 months ago

TristanBlackwell commented 6 months ago

PR #7 solves a bug with data being serialised incorrectly due to being unable to convert between raw serde_json::Value and the x-www-form-urlencoded required by Reqwest.

Whilst the fix works the addition of extra structs and duplicate logic is somewhat inefficient. Find a way to improve this.