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 ActivityEditForm {
    #[serde(rename = "name")]
    pub name: String,
    #[serde(rename = "number", skip_serializing_if = "Option::is_none")]
    pub number: Option<String>,
    #[serde(rename = "comment", skip_serializing_if = "Option::is_none")]
    pub comment: Option<String>,
    #[serde(rename = "invoiceText", skip_serializing_if = "Option::is_none")]
    pub invoice_text: Option<String>,
    /// Project ID
    #[serde(rename = "project", skip_serializing_if = "Option::is_none")]
    pub project: Option<i32>,
    /// Team ID
    #[serde(rename = "teams", skip_serializing_if = "Option::is_none")]
    pub teams: Option<i32>,
    /// The hexadecimal color code (default: auto-calculated by name)
    #[serde(rename = "color", skip_serializing_if = "Option::is_none")]
    pub color: Option<String>,
    #[serde(rename = "visible", skip_serializing_if = "Option::is_none")]
    pub visible: Option<bool>,
    #[serde(rename = "billable", skip_serializing_if = "Option::is_none")]
    pub billable: Option<bool>,
}

impl ActivityEditForm {
    pub fn new(name: String) -> ActivityEditForm {
        ActivityEditForm {
            name,
            number: None,
            comment: None,
            invoice_text: None,
            project: None,
            teams: None,
            color: None,
            visible: None,
            billable: None,
        }
    }
}