2022-04-10 06:03:52 -05:00
|
|
|
/*
|
|
|
|
* tmtd - Suckless To Do list
|
|
|
|
* Copyright (C) 2022 C4TG1RL5
|
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify it
|
|
|
|
* under the terms of the GNU General Public License as published by the Free
|
|
|
|
* Software Foundation, either version 3 of the License, or (at your option)
|
|
|
|
* any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
|
|
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
|
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
|
|
|
* more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License along with
|
|
|
|
* this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
2022-05-10 09:34:13 -05:00
|
|
|
use serde::Deserialize;
|
2022-04-16 16:54:13 -05:00
|
|
|
|
|
|
|
#[derive(Debug, Deserialize)]
|
2022-05-10 09:34:13 -05:00
|
|
|
pub struct CreateTask {
|
2022-04-15 13:00:36 -05:00
|
|
|
pub title: String,
|
|
|
|
pub status: String,
|
|
|
|
pub assignee: String,
|
|
|
|
pub description: String,
|
2022-04-10 06:03:52 -05:00
|
|
|
}
|
|
|
|
|
2022-05-10 09:34:13 -05:00
|
|
|
#[derive(Debug, Deserialize)]
|
|
|
|
pub struct MoveTask {
|
|
|
|
pub category: String,
|
|
|
|
pub task_id: String,
|
2022-04-10 06:03:52 -05:00
|
|
|
}
|
2022-05-10 09:34:13 -05:00
|
|
|
|
|
|
|
#[derive(Debug, Deserialize)]
|
|
|
|
pub struct SortTask {
|
|
|
|
pub category: String,
|
|
|
|
}
|
|
|
|
|
2022-05-11 04:07:01 -05:00
|
|
|
#[derive(Deserialize)]
|
|
|
|
pub struct Login {
|
|
|
|
pub username: String,
|
|
|
|
pub password: String,
|
|
|
|
}
|
|
|
|
|
|
|
|
#[derive(Deserialize)]
|
|
|
|
pub struct Register {
|
|
|
|
pub username: String,
|
|
|
|
pub password: String,
|
|
|
|
}
|