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
Use lifetimes / references to create a non-owned approach to key deserialization, if possible. Not sure if this is actually possible, as these keys come from storage, and are an ephemeral / referenced type (&[u8]) already.
serde has a Deserialize trait that works with references, as well as a DeserializeOwned one. Let's take a look at it to understand it better, and see if a similar approach can be applied here.
The text was updated successfully, but these errors were encountered:
Is this possible or not? If possible, is there any idea how to proceed?
No need to start on it, but it would be great to document an approach that could work. Or close it as "won't fix" (I kind of feel the second one, as I am unsure this is possible)
Use lifetimes / references to create a non-owned approach to key deserialization, if possible. Not sure if this is actually possible, as these keys come from storage, and are an ephemeral / referenced type (
&[u8]
) already.serde
has aDeserialize
trait that works with references, as well as aDeserializeOwned
one. Let's take a look at it to understand it better, and see if a similar approach can be applied here.The text was updated successfully, but these errors were encountered: