Link up db types

This commit is contained in:
2024-03-02 16:59:04 +00:00
parent 84b4c747f5
commit 0f3c031b7a
2 changed files with 27 additions and 2 deletions
+23 -2
View File
@@ -61,9 +61,30 @@ pub struct Project {
pub client_id: Option<u64>,
pub name: String,
pub active: bool,
pub color: String,
pub at: String,
pub server_deleted_at: Option<String>,
pub created_at: String,
#[serde(flatten)]
pub rest: HashMap<String, Value>,
// cid: Option<serde_json::Value>,
// wid: i64,
// rate: Option<serde_json::Value>,
// status: String,
// billable: Option<serde_json::Value>,
// currency: Option<serde_json::Value>,
// template: Option<serde_json::Value>,
// fixed_fee: Option<serde_json::Value>,
// recurring: bool,
// is_private: bool,
// start_date: String,
// template_id: Option<serde_json::Value>,
// actual_hours: i64,
// actual_seconds: i64,
// auto_estimates: Option<serde_json::Value>,
// estimated_hours: Option<serde_json::Value>,
// estimated_seconds: Option<serde_json::Value>,
// rate_last_updated: Option<serde_json::Value>,
// recurring_parameters: Option<serde_json::Value>,
}
/// Represents a client in Toggl.