init
This commit is contained in:
commit
a7c1643b10
10 changed files with 2112 additions and 0 deletions
36
src/api/task.rs
Normal file
36
src/api/task.rs
Normal file
|
@ -0,0 +1,36 @@
|
|||
use serde::{Deserialize, Serialize};
|
||||
|
||||
use super::{Label, User};
|
||||
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
pub struct Task {
|
||||
pub id: usize,
|
||||
pub title: String,
|
||||
pub description: String,
|
||||
pub done: bool,
|
||||
pub done_at: String,
|
||||
pub due_date: String,
|
||||
pub reminders: Option<String>,
|
||||
pub project_id: isize,
|
||||
pub repeat_after: usize,
|
||||
pub repeat_mode: usize,
|
||||
pub priority: usize,
|
||||
pub start_date: String,
|
||||
pub end_date: String,
|
||||
pub assignees: Option<Vec<User>>,
|
||||
pub labels: Option<Vec<Label>>,
|
||||
pub hex_color: String,
|
||||
pub percent_done: f64,
|
||||
pub identifier: String,
|
||||
pub index: usize,
|
||||
// pub related_tasks
|
||||
// pub attachments
|
||||
pub cover_image_attachment_id: usize,
|
||||
pub is_favorite: bool,
|
||||
pub created: String,
|
||||
pub updated: String,
|
||||
pub bucket_id: usize,
|
||||
pub position: f64,
|
||||
pub kanban_position: f64,
|
||||
pub created_by: User,
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue