How to fix lifetime error when function returns a serde Deserialize type?

I found an answer from Serde issue 891: I should use DeserializeOwned instead of Deserialize.

Leave a Comment