Lifetime error when creating a function that returns a value implementing serde::Deserialize

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

Leave a Comment