botx_api/api/models/
express_error.rs1use serde::{Serialize, Deserialize};
2use uuid::Uuid;
3
4#[derive(Debug, Serialize, Deserialize, Clone)]
6pub struct ChatNotFoundWithEventId {
7 pub sync_id: Uuid,
9
10 pub errors: Vec<String>,
12
13 pub error_data: ChatNotFoundWithEventIdData,
15}
16
17#[derive(Debug, Serialize, Deserialize, Clone)]
18pub struct ChatNotFoundWithEventIdData {
19 pub group_chat_id: Uuid,
21
22 pub error_description: String,
24}
25
26#[derive(Debug, Serialize, Deserialize, Clone)]
28pub struct ChatNotFound {
29 pub errors: Vec<String>,
31
32 pub error_data: ChatNotFoundData,
34}
35
36#[derive(Debug, Serialize, Deserialize, Clone)]
37pub struct ChatNotFoundData {
38 pub group_chat_id: Uuid,
40
41 pub error_description: String,
43}
44
45#[derive(Debug, Serialize, Deserialize, Clone)]
47pub struct ErrorFromMessagingServiceWithEventId {
48 pub sync_id: Uuid,
50
51 pub errors: Vec<String>,
53
54 pub error_data: ErrorFromMessagingServiceWithEventIdData,
56}
57
58#[derive(Debug, Serialize, Deserialize, Clone)]
59pub struct ErrorFromMessagingServiceWithEventIdData {
60 pub group_chat_id: Uuid,
62
63 pub reason: String,
65
66 pub error_description: String,
68}
69
70#[derive(Debug, Serialize, Deserialize, Clone)]
72pub struct ErrorFromMessagingService {
73 pub errors: Vec<String>,
75
76 pub error_data: ErrorFromMessagingServiceData,
78}
79
80#[derive(Debug, Serialize, Deserialize, Clone)]
81pub struct ErrorFromMessagingServiceData {
82 pub group_chat_id: Uuid,
84
85 pub reason: String,
87
88 pub error_description: String,
90}
91
92#[derive(Debug, Serialize, Deserialize, Clone)]
94pub struct BotIsNotAChatMember {
95 pub sync_id: Uuid,
97
98 pub errors: Vec<String>,
100
101 pub error_data: BotIsNotAChatMemberData,
103}
104
105#[derive(Debug, Serialize, Deserialize, Clone)]
106pub struct BotIsNotAChatMemberData {
107 pub group_chat_id: Uuid,
109
110 pub bot_id: Uuid,
112
113 pub error_description: String,
115}
116
117#[derive(Debug, Serialize, Deserialize, Clone)]
119pub struct EventRecipientsListIsEmpty {
120 pub sync_id: Uuid,
122
123 pub errors: Vec<String>,
125
126 pub error_data: EventRecipientsListIsEmptyData,
128}
129
130#[derive(Debug, Serialize, Deserialize, Clone)]
131pub struct EventRecipientsListIsEmptyData {
132 pub group_chat_id: Uuid,
134
135 pub bot_id: Uuid,
137
138 pub recipients_param: Vec<Uuid>,
140
141 pub error_description: String,
143}