/*
* 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 TeamEditForm {
/// Name of the team
#[serde(rename = "name")]
pub name: String,
/// The hexadecimal color code (default: auto-calculated by name)
#[serde(rename = "color", skip_serializing_if = "Option::is_none")]
pub color: Option<String>,
/// All team members
#[serde(rename = "members")]
pub members: Vec<models::TeamEditFormMembersInner>,
}
impl TeamEditForm {
pub fn new(name: String, members: Vec<models::TeamEditFormMembersInner>) -> TeamEditForm {
TeamEditForm {
name,
color: None,
members,
}
}
}