inventorylib/dto/
todo_response.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use chrono::NaiveDate;
use serde::{Deserialize, Serialize};
use uuid::Uuid;

#[derive(Serialize, Deserialize, Debug, Clone)]
#[serde(rename_all = "camelCase")]
pub struct TodoResponse {
    pub id: Uuid,
    #[serde(skip_serializing_if = "Option::is_none")]
    pub ver: Option<i32>,
    pub name: String,
    pub end_time: NaiveDate,
    pub responsible: Uuid,
    pub organization: Uuid,
}