refactor: make the project form component handle the server calls itself

This commit is contained in:
Matouš Volf
2024-08-18 21:17:31 +02:00
parent 1656177e66
commit c537fb4e03
5 changed files with 27 additions and 21 deletions

View File

@ -6,7 +6,7 @@ use validator::Validate;
const TITLE_LENGTH_MIN: u64 = 1;
const TITLE_LENGTH_MAX: u64 = 255;
#[derive(Queryable, Selectable, Serialize, Deserialize)]
#[derive(Queryable, Selectable, Serialize, Deserialize, Debug)]
#[diesel(table_name = crate::schema::projects)]
#[diesel(check_for_backend(diesel::pg::Pg))]
pub struct Project {