1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*
* 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 ProjectRateForm {
/// User ID
#[serde(rename = "user", skip_serializing_if = "Option::is_none")]
pub user: Option<i32>,
/// The rate (eg. 10.5)
#[serde(rename = "rate")]
pub rate: f64,
/// The internal rate (eg. 10.0 or 10)
#[serde(rename = "internalRate", skip_serializing_if = "Option::is_none")]
pub internal_rate: Option<f64>,
#[serde(rename = "isFixed", skip_serializing_if = "Option::is_none")]
pub is_fixed: Option<bool>,
}
impl ProjectRateForm {
pub fn new(rate: f64) -> ProjectRateForm {
ProjectRateForm {
user: None,
rate,
internal_rate: None,
is_fixed: None,
}
}
}