mattermost_rust_client/models/
create_team_request.rs

1/*
2 * Mattermost API Reference
3 *
4 * There is also a work-in-progress [Postman API reference](https://documenter.getpostman.com/view/4508214/RW8FERUn). 
5 *
6 * The version of the OpenAPI document: 4.0.0
7 * Contact: feedback@mattermost.com
8 * Generated by: https://openapi-generator.tech
9 */
10
11
12
13
14#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
15pub struct CreateTeamRequest {
16    /// Unique handler for a team, will be present in the team URL
17    #[serde(rename = "name")]
18    pub name: String,
19    /// Non-unique UI name for the team
20    #[serde(rename = "display_name")]
21    pub display_name: String,
22    /// `'O'` for open, `'I'` for invite only
23    #[serde(rename = "type")]
24    pub r#type: String,
25}
26
27impl CreateTeamRequest {
28    pub fn new(name: String, display_name: String, r#type: String) -> CreateTeamRequest {
29        CreateTeamRequest {
30            name,
31            display_name,
32            r#type,
33        }
34    }
35}
36
37