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
Hi again, I'm wondering, is it possible to use serde_state to serialize trait objects? I tried to use it together with serde_traitobject but it seems to require serde::Serialize. Is there some other way you know of to achieve this?
You would have to use serde_traitojbect (or the same approach at least). The only other option I know is to smuggle state via thread locals to let you use any non-state serializers.
Hi again, I'm wondering, is it possible to use
serde_state
to serialize trait objects? I tried to use it together withserde_traitobject
but it seems to requireserde::Serialize
. Is there some other way you know of to achieve this?This is what
serde_traitobject
allows:The text was updated successfully, but these errors were encountered: