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 TimesheetEditForm {
    #[serde(rename = "begin")]
    pub begin: String,
    #[serde(rename = "end", skip_serializing_if = "Option::is_none")]
    pub end: Option<String>,
    /// 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>,
    /// Fixed rate
    #[serde(rename = "fixedRate", skip_serializing_if = "Option::is_none")]
    pub fixed_rate: Option<f64>,
    /// Hourly rate
    #[serde(rename = "hourlyRate", skip_serializing_if = "Option::is_none")]
    pub hourly_rate: Option<f64>,
    /// User ID
    #[serde(rename = "user", skip_serializing_if = "Option::is_none")]
    pub user: Option<i32>,
    /// Comma separated list of tags
    #[serde(rename = "tags", skip_serializing_if = "Option::is_none")]
    pub tags: Option<String>,
    #[serde(rename = "exported", skip_serializing_if = "Option::is_none")]
    pub exported: Option<bool>,
    #[serde(rename = "billable", skip_serializing_if = "Option::is_none")]
    pub billable: Option<bool>,
}

impl TimesheetEditForm {
    pub fn new(begin: String, project: i32, activity: i32) -> TimesheetEditForm {
        TimesheetEditForm {
            begin,
            end: None,
            project,
            activity,
            description: None,
            fixed_rate: None,
            hourly_rate: None,
            user: None,
            tags: None,
            exported: None,
            billable: None,
        }
    }
}