This commit is contained in:
@@ -57,9 +57,13 @@ fn default_true() -> bool {
|
||||
|
||||
#[derive(Debug, Deserialize)]
|
||||
pub struct CreateTask {
|
||||
pub title: String,
|
||||
pub public_title: String,
|
||||
#[serde(default)]
|
||||
pub notes: Option<String>,
|
||||
pub encrypted_payload: Option<String>,
|
||||
#[serde(default)]
|
||||
pub encryption_version: Option<i16>,
|
||||
#[serde(default)]
|
||||
pub content_id: Option<String>,
|
||||
pub section: Section,
|
||||
pub priority: Priority,
|
||||
pub scheduled_date: String,
|
||||
@@ -76,8 +80,10 @@ pub struct RescheduleTask {
|
||||
pub struct Task {
|
||||
pub id: i64,
|
||||
pub routine_id: Option<i64>,
|
||||
pub title: String,
|
||||
pub notes: Option<String>,
|
||||
pub public_title: String,
|
||||
pub encrypted_payload: Option<String>,
|
||||
pub encryption_version: Option<i16>,
|
||||
pub content_id: Option<String>,
|
||||
pub section: String,
|
||||
pub priority: String,
|
||||
pub scheduled_date: String,
|
||||
@@ -88,9 +94,13 @@ pub struct Task {
|
||||
|
||||
#[derive(Debug, Deserialize)]
|
||||
pub struct CreateRoutine {
|
||||
pub title: String,
|
||||
pub public_title: String,
|
||||
#[serde(default)]
|
||||
pub notes: Option<String>,
|
||||
pub encrypted_payload: Option<String>,
|
||||
#[serde(default)]
|
||||
pub encryption_version: Option<i16>,
|
||||
#[serde(default)]
|
||||
pub content_id: Option<String>,
|
||||
pub section: Section,
|
||||
pub priority: Priority,
|
||||
pub schedule: Schedule,
|
||||
@@ -101,8 +111,10 @@ pub struct CreateRoutine {
|
||||
#[derive(Debug, Clone, Serialize)]
|
||||
pub struct Routine {
|
||||
pub id: i64,
|
||||
pub title: String,
|
||||
pub notes: Option<String>,
|
||||
pub public_title: String,
|
||||
pub encrypted_payload: Option<String>,
|
||||
pub encryption_version: Option<i16>,
|
||||
pub content_id: Option<String>,
|
||||
pub section: String,
|
||||
pub priority: String,
|
||||
pub schedule: Schedule,
|
||||
@@ -113,7 +125,7 @@ pub struct Routine {
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct DueNotification {
|
||||
pub task_id: i64,
|
||||
pub title: String,
|
||||
pub public_title: String,
|
||||
pub section: String,
|
||||
pub priority: String,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user