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
-
I have a type like this:
I'm currently doing this to read it from the DB:
Notice that the intermediary type
SessionKeyDB
doesn't implementFromRow
. Yet I'm able to read and write to my SQLite database without issue. Has something changed whereFromRow
is no longer required?I also tried to manually implement
FromRow
for my type as such:But when I tried to use
SessionToken
in aquery_as!
call, I get an error thatFrom<Vec<u8>>
is not implemented forSecretKey
which sounds like it's not even using myFromRow
implementation. 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