kimai_client_lib 1.0.0

JSON API for the Kimai time-tracking software. Read our [API documentation](https://www.kimai.org/documentation/rest-api.html) and download the [Open API definition](doc.json) to import into your API client.
Documentation
/*
 * Kimai - API
 *
 * JSON API for the Kimai time-tracking software. Read our [API documentation](https://www.kimai.org/documentation/rest-api.html) and download the [Open API definition](doc.json) to import into your API client. 
 *
 * The version of the OpenAPI document: 1.0
 * 
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct TaskEditForm {
    #[serde(rename = "title")]
    pub title: String,
    /// The actual doings, which will be available on the detail and edit page.
    #[serde(rename = "todo", skip_serializing_if = "Option::is_none")]
    pub todo: Option<String>,
    #[serde(rename = "end", skip_serializing_if = "Option::is_none")]
    pub end: Option<String>,
    /// Estimation in seconds
    #[serde(rename = "estimation", skip_serializing_if = "Option::is_none")]
    pub estimation: Option<i32>,
    /// Project ID
    #[serde(rename = "project")]
    pub project: i32,
    /// Activity ID
    #[serde(rename = "activity")]
    pub activity: i32,
    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
    pub description: Option<String>,
    #[serde(rename = "tags", skip_serializing_if = "Option::is_none")]
    pub tags: Option<Vec<String>>,
    /// User ID
    #[serde(rename = "user", skip_serializing_if = "Option::is_none")]
    pub user: Option<i32>,
    /// Team ID
    #[serde(rename = "team", skip_serializing_if = "Option::is_none")]
    pub team: Option<i32>,
}

impl TaskEditForm {
    pub fn new(title: String, project: i32, activity: i32) -> TaskEditForm {
        TaskEditForm {
            title,
            todo: None,
            end: None,
            estimation: None,
            project,
            activity,
            description: None,
            tags: None,
            user: None,
            team: None,
        }
    }
}