Is FromRow Not Needed? #2944
Unanswered
mike-lloyd03
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a type like this:
I'm currently doing this to read it from the DB:
Notice that the intermediary type
SessionKeyDBdoesn't implementFromRow. Yet I'm able to read and write to my SQLite database without issue. Has something changed whereFromRowis no longer required?I also tried to manually implement
FromRowfor my type as such:But when I tried to use
SessionTokenin aquery_as!call, I get an error thatFrom<Vec<u8>>is not implemented forSecretKeywhich sounds like it's not even using myFromRowimplementation. In fact, commenting it out of my code makes no difference.Source code is available here
Beta Was this translation helpful? Give feedback.
All reactions