working on constraint design
This commit is contained in:
@@ -144,6 +144,12 @@ pub struct Recipe {
|
||||
pub preparation: String,
|
||||
}
|
||||
|
||||
impl PartialEq for Recipe {
|
||||
fn eq(&self, other: &Recipe) -> bool {
|
||||
self.id == other.id
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Insertable, Debug)]
|
||||
#[table_name="recipes"]
|
||||
pub struct NewRecipe<'a> {
|
||||
|
||||
Reference in New Issue
Block a user