You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
543 B
34 lines
543 B
use rocket::form::Form;
|
|
|
|
#[derive(FromForm)]
|
|
pub struct NewUserForm<'a> {
|
|
pub username: &'a str,
|
|
pub password: &'a str,
|
|
pub email: &'a str,
|
|
}
|
|
|
|
#[derive(FromForm)]
|
|
pub struct NewListForm<'a> {
|
|
pub name: &'a str,
|
|
}
|
|
|
|
#[derive(FromForm)]
|
|
pub struct UserLoginForm<'a> {
|
|
pub username: &'a str,
|
|
pub password: &'a str,
|
|
}
|
|
|
|
#[derive(FromForm)]
|
|
pub struct PermsForm<'a> {
|
|
pub list_id: i32,
|
|
pub user_email: &'a str,
|
|
pub perm: i32,
|
|
}
|
|
|
|
#[derive(FromForm)]
|
|
pub struct NewNoteForm<'a> {
|
|
pub content: &'a str,
|
|
pub list_uuid: &'a str,
|
|
}
|
|
|