serde_with
serde_with copied to clipboard
Add `with_suffix` macro?
Perhaps not such a common use case as stripping prefixes, but it would be nice if there was a symmetrical with_suffix macro that could strip suffixes.
Hi, thanks for the interest. I am open to accepting a PR to add this macro. I have not seen much demand for such a macro so far.
The implementation can probably mostly be taken from the existing with_prefix macro, the main differences being the parts where the prefix is added/stripped.
If someone needs this, feel welcome to submit a PR. But I would rather not keep the issue open indefinitely.