Skip to content

Commit

Permalink
Replace manual (de)serialization for single field gateway events (#1650)
Browse files Browse the repository at this point in the history
The manual deserialization is replaced by `#[serde(transparent)]`.

A newtype struct or braced struct with only one field is deserialized as
if the one field was deserialized by itself.
  • Loading branch information
nickelc authored and arqunis committed Mar 15, 2022
1 parent eda64a6 commit 599efc1
Showing 1 changed file with 56 additions and 410 deletions.

0 comments on commit 599efc1

Please sign in to comment.