How to serde i64 with string by default? #576
-
I want to serde i64 with string, but my struct is generated by prost, so I can't add |
Beta Was this translation helpful? Give feedback.
Answered by
davidpdrsn
Nov 29, 2021
Replies: 1 comment 4 replies
-
Is this a question about axum or prost? Regardless I suppose you can use https://docs.rs/prost-build/latest/prost_build/struct.Config.html#method.field_attribute or https://docs.rs/prost-build/latest/prost_build/struct.Config.html#method.type_attribute to add the attributes on the prost side. |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
lz1998
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is this a question about axum or prost?
Regardless I suppose you can use https://docs.rs/prost-build/latest/prost_build/struct.Config.html#method.field_attribute or https://docs.rs/prost-build/latest/prost_build/struct.Config.html#method.type_attribute to add the attributes on the prost side.