Skip to content

How to compose transformations? #767

Answered by jonasbb
jmcph4 asked this question in Q&A
Discussion options

You must be logged in to vote

Unfortunately it is impossible to combine multiple transformations. You can create you own type that implements the behavior of both combined. The documentation has some information how to get started and you can look at the implementation of both types.
https://docs.rs/serde_with/3.8.3/serde_with/guide/serde_as/index.html#implementing-serializeas--deserializeas

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jmcph4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants