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 upPostgreSQL: SystemTime does not implement diesel::types::Timestamp #874
Comments
This comment has been minimized.
|
Here is the
I tried you code myself on rust nightly and it didn't compile either. I'm looking at the code right now to find an explanation ^^ |
This comment has been minimized.
|
This is basically just a slightly confusing case that only applies when you have exactly 1 column. |
sgrif
closed this
Apr 29, 2017
This comment has been minimized.
iH8c0ff33
commented
Apr 29, 2017
|
@sgrif |
This comment has been minimized.
|
Not dumb at all. It's an unfortunately confusing case and I'm always happy to help. |
iH8c0ff33 commentedApr 29, 2017
Here is my migration:
The model:
And some basic code:
If I try to compile the code above I get the following error, but in the documentation for diesel::types::Timestamp I see SystemTime should be a correct implementation.
I'm not at all an experienced rust programmer and I'm using diesel for the first time, but I can't find anything wrong with that code, please tell me if I'm wrong. Thanks for all your help.
Environment details: