-
-
Save stephanbuys/ca823ec4b0df619ac6d884f76d6e5505 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#[derive(PartialEq, Eq, Debug, Clone, Queryable, Identifiable, Insertable, AsChangeset, Associations)] | |
#[table_name = "users"] | |
pub struct User { | |
pub id: i32, | |
pub name: String, | |
pub hair_color: Option<String>, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment