Is it possible to add a proc macro for code that you don't own? for example is there a way i could add a derive macro to some pub struct from another crate? like if i wanted some fn to be called at the beginning of any of the serialize funtions is it even possible to put a derive macro on this struct?
https://docs.rs/serde_json/latest/serde_json/struct.Serializer.html
or maybe there's a trick with newtype to do this?
A structure for serializing Rust values into JSON.