You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
serde::Deserialize takes the lifetime parameter <'de>. How should I check that a class derives serde::Deserialize?
One of the working solutions is assert_impl_all!(MyType : serde::Deserialize<'static>);, using the trick that 'static is available everywhere. However, is this the best practice?
Please consider adding this note to the documentation.
The text was updated successfully, but these errors were encountered:
serde::Deserialize
takes the lifetime parameter<'de>
. How should I check that a class derives serde::Deserialize?One of the working solutions is
assert_impl_all!(MyType : serde::Deserialize<'static>);
, using the trick that'static
is available everywhere. However, is this the best practice?Please consider adding this note to the documentation.
The text was updated successfully, but these errors were encountered: