Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upMaking a type Queryable and Insertable in diesel 0.10 #640
Comments
This was referenced Feb 8, 2017
This comment has been minimized.
|
According to that error message, you're missing |
This comment has been minimized.
|
I expanded on this in #429 (comment). Feel free to comment here, open a new issue, or ping in gitter if this hasn't been sufficiently answered. |
sgrif
closed this
Feb 8, 2017
brandur
referenced this issue
Dec 29, 2017
Closed
Allowing a type that's Queryable and Insertable to autoincrement its ID #1440
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
jimmycuadra commentedFeb 8, 2017
ruma-identifiers has some code to make a few custom types
InsertableandQueryable. This previously worked in diesel 0.9: https://github.com/ruma/ruma-identifiers/blob/29f76ca95d295bca36ec53cd8da72217c5aa0f75/src/lib.rs#L689This is being used in structs like this:
In diesel 0.10, this now results in compiler errors:
I played around with it for a while but wasn't able to figure out what changed and how to account for those changes. Any suggestions?