dtz_core/models/
chat.rs

1/*
2 * DTZ Core Api
3 *
4 * a generated client for the DTZ Core API
5 *
6 * Contact: jens@apimeister.com
7 * Generated by: https://openapi-generator.tech
8 */
9
10#[allow(unused_imports)]
11use crate::models;
12#[allow(unused_imports)]
13use serde::{Deserialize, Serialize};
14
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct Chat {
17    #[serde(rename = "chatId", skip_serializing_if = "Option::is_none")]
18    pub chat_id: Option<String>,
19    #[serde(rename = "created", skip_serializing_if = "Option::is_none")]
20    pub created: Option<String>,
21    #[serde(rename = "owner", skip_serializing_if = "Option::is_none")]
22    pub owner: Option<dtz_identifier::IdentityId>,
23    #[serde(rename = "privileges", skip_serializing_if = "Option::is_none")]
24    pub privileges: Option<Box<models::ChatPrivileges>>,
25    #[serde(rename = "timeline", skip_serializing_if = "Option::is_none")]
26    pub timeline: Option<Vec<models::ChatTimelineInner>>,
27}
28
29impl Chat {
30    pub fn new() -> Chat {
31        Chat {
32            chat_id: None,
33            created: None,
34            owner: None,
35            privileges: None,
36            timeline: None,
37        }
38    }
39}
40