dtz_core/models/
chat_response_message.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 ChatResponseMessage {
17    #[serde(rename = "chatId", skip_serializing_if = "Option::is_none")]
18    pub chat_id: Option<String>,
19    /// when the message was created
20    #[serde(rename = "created", skip_serializing_if = "Option::is_none")]
21    pub created: Option<String>,
22    #[serde(rename = "content", skip_serializing_if = "Option::is_none")]
23    pub content: Option<String>,
24    /// who the answer is from
25    #[serde(rename = "identityId", skip_serializing_if = "Option::is_none")]
26    pub identity_id: Option<dtz_identifier::IdentityId>,
27}
28
29impl ChatResponseMessage {
30    pub fn new() -> ChatResponseMessage {
31        ChatResponseMessage {
32            chat_id: None,
33            created: None,
34            content: None,
35            identity_id: None,
36        }
37    }
38}
39