style: macro formatting
This commit is contained in:
parent
9324d841fb
commit
7557b4ce4e
@ -27,11 +27,7 @@ impl Project {
|
|||||||
#[derive(Insertable, Serialize, Deserialize, Validate, Clone, Debug)]
|
#[derive(Insertable, Serialize, Deserialize, Validate, Clone, Debug)]
|
||||||
#[diesel(table_name = projects)]
|
#[diesel(table_name = projects)]
|
||||||
pub struct NewProject {
|
pub struct NewProject {
|
||||||
#[validate(length(
|
#[validate(length(min = "TITLE_LENGTH_MIN", max = "TITLE_LENGTH_MAX", code = "title_length"))]
|
||||||
min = "TITLE_LENGTH_MIN",
|
|
||||||
max = "TITLE_LENGTH_MAX",
|
|
||||||
code = "title_length"
|
|
||||||
))]
|
|
||||||
pub title: String,
|
pub title: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user