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
A Session has a data field of type HashMap<String, String>. This forces a session to always use JSON for serialization/deserialization.
In my case I would prefer if it was a HashMap<String, Bytes> so that I can use more efficient serde methods (e.g.: bincode, which this crate already uses)
Would it be possible to change Session so that it becomes generic like Session<T> so that data becomes HashMap<String, T>?
The text was updated successfully, but these errors were encountered:
A
Session
has a data field of typeHashMap<String, String>
. This forces a session to always use JSON for serialization/deserialization.In my case I would prefer if it was a
HashMap<String, Bytes>
so that I can use more efficient serde methods (e.g.: bincode, which this crate already uses)Would it be possible to change
Session
so that it becomes generic likeSession<T>
so that data becomesHashMap<String, T>
?The text was updated successfully, but these errors were encountered: