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 upUUID usage example #326
Comments
This comment has been minimized.
|
The problem is that you have a nullable field but you are attempting to load it into a type which does not handle it. Rust does not have a concept of null, so you need to have the type reflect this. You either need to change |
sgrif
closed this
May 12, 2016
This comment has been minimized.
|
Are you sure you're having the same problem ? Can you paste the error you're seeing too ? |
This comment has been minimized.
vityafx
commented
Jul 14, 2017
|
@Eijebong No, it's okay. I have just realized that the problem is in another table where I had simple
So it was nullable. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
mann-ed commentedMay 12, 2016
I used the diesel_demo app. I added needed dependencies and a uuid column to posts. Just for simplicity i only ran the show_posts.rs. I can't seem to figure out how to use a uuid column. Error i get is
This is my second day on learning Rust so i don't have a lot of experience. Is this just a newbie error?
models.rs
Cargo.toml
lib.rs
Sorry if this should not be posted this way. If so i'm sure i will get educated on the correct way.
Thanks