google_cloud_support_v2/model/
debug.rs

1// Copyright 2025 Google LLC
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//     https://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14//
15// Code generated by sidekick. DO NOT EDIT.
16
17#[allow(unused_imports)]
18use super::*;
19
20impl std::fmt::Debug for super::Actor {
21    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
22        let mut debug_struct = f.debug_struct("Actor");
23        debug_struct.field("display_name", &self.display_name);
24        debug_struct.field("email", &self.email);
25        debug_struct.field("google_support", &self.google_support);
26        debug_struct.field("username", &self.username);
27        if !self._unknown_fields.is_empty() {
28            debug_struct.field("_unknown_fields", &self._unknown_fields);
29        }
30        debug_struct.finish()
31    }
32}
33
34impl std::fmt::Debug for super::Attachment {
35    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
36        let mut debug_struct = f.debug_struct("Attachment");
37        debug_struct.field("name", &self.name);
38        debug_struct.field("create_time", &self.create_time);
39        debug_struct.field("creator", &self.creator);
40        debug_struct.field("filename", &self.filename);
41        debug_struct.field("mime_type", &self.mime_type);
42        debug_struct.field("size_bytes", &self.size_bytes);
43        if !self._unknown_fields.is_empty() {
44            debug_struct.field("_unknown_fields", &self._unknown_fields);
45        }
46        debug_struct.finish()
47    }
48}
49
50impl std::fmt::Debug for super::ListAttachmentsRequest {
51    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
52        let mut debug_struct = f.debug_struct("ListAttachmentsRequest");
53        debug_struct.field("parent", &self.parent);
54        debug_struct.field("page_size", &self.page_size);
55        debug_struct.field("page_token", &self.page_token);
56        if !self._unknown_fields.is_empty() {
57            debug_struct.field("_unknown_fields", &self._unknown_fields);
58        }
59        debug_struct.finish()
60    }
61}
62
63impl std::fmt::Debug for super::ListAttachmentsResponse {
64    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
65        let mut debug_struct = f.debug_struct("ListAttachmentsResponse");
66        debug_struct.field("attachments", &self.attachments);
67        debug_struct.field("next_page_token", &self.next_page_token);
68        if !self._unknown_fields.is_empty() {
69            debug_struct.field("_unknown_fields", &self._unknown_fields);
70        }
71        debug_struct.finish()
72    }
73}
74
75impl std::fmt::Debug for super::Case {
76    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
77        let mut debug_struct = f.debug_struct("Case");
78        debug_struct.field("name", &self.name);
79        debug_struct.field("display_name", &self.display_name);
80        debug_struct.field("description", &self.description);
81        debug_struct.field("classification", &self.classification);
82        debug_struct.field("time_zone", &self.time_zone);
83        debug_struct.field(
84            "subscriber_email_addresses",
85            &self.subscriber_email_addresses,
86        );
87        debug_struct.field("state", &self.state);
88        debug_struct.field("create_time", &self.create_time);
89        debug_struct.field("update_time", &self.update_time);
90        debug_struct.field("creator", &self.creator);
91        debug_struct.field("contact_email", &self.contact_email);
92        debug_struct.field("escalated", &self.escalated);
93        debug_struct.field("test_case", &self.test_case);
94        debug_struct.field("language_code", &self.language_code);
95        debug_struct.field("priority", &self.priority);
96        if !self._unknown_fields.is_empty() {
97            debug_struct.field("_unknown_fields", &self._unknown_fields);
98        }
99        debug_struct.finish()
100    }
101}
102
103impl std::fmt::Debug for super::CaseClassification {
104    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
105        let mut debug_struct = f.debug_struct("CaseClassification");
106        debug_struct.field("id", &self.id);
107        debug_struct.field("display_name", &self.display_name);
108        if !self._unknown_fields.is_empty() {
109            debug_struct.field("_unknown_fields", &self._unknown_fields);
110        }
111        debug_struct.finish()
112    }
113}
114
115impl std::fmt::Debug for super::GetCaseRequest {
116    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
117        let mut debug_struct = f.debug_struct("GetCaseRequest");
118        debug_struct.field("name", &self.name);
119        if !self._unknown_fields.is_empty() {
120            debug_struct.field("_unknown_fields", &self._unknown_fields);
121        }
122        debug_struct.finish()
123    }
124}
125
126impl std::fmt::Debug for super::CreateCaseRequest {
127    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
128        let mut debug_struct = f.debug_struct("CreateCaseRequest");
129        debug_struct.field("parent", &self.parent);
130        debug_struct.field("case", &self.case);
131        if !self._unknown_fields.is_empty() {
132            debug_struct.field("_unknown_fields", &self._unknown_fields);
133        }
134        debug_struct.finish()
135    }
136}
137
138impl std::fmt::Debug for super::ListCasesRequest {
139    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
140        let mut debug_struct = f.debug_struct("ListCasesRequest");
141        debug_struct.field("parent", &self.parent);
142        debug_struct.field("filter", &self.filter);
143        debug_struct.field("page_size", &self.page_size);
144        debug_struct.field("page_token", &self.page_token);
145        if !self._unknown_fields.is_empty() {
146            debug_struct.field("_unknown_fields", &self._unknown_fields);
147        }
148        debug_struct.finish()
149    }
150}
151
152impl std::fmt::Debug for super::ListCasesResponse {
153    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
154        let mut debug_struct = f.debug_struct("ListCasesResponse");
155        debug_struct.field("cases", &self.cases);
156        debug_struct.field("next_page_token", &self.next_page_token);
157        if !self._unknown_fields.is_empty() {
158            debug_struct.field("_unknown_fields", &self._unknown_fields);
159        }
160        debug_struct.finish()
161    }
162}
163
164impl std::fmt::Debug for super::SearchCasesRequest {
165    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
166        let mut debug_struct = f.debug_struct("SearchCasesRequest");
167        debug_struct.field("parent", &self.parent);
168        debug_struct.field("query", &self.query);
169        debug_struct.field("page_size", &self.page_size);
170        debug_struct.field("page_token", &self.page_token);
171        if !self._unknown_fields.is_empty() {
172            debug_struct.field("_unknown_fields", &self._unknown_fields);
173        }
174        debug_struct.finish()
175    }
176}
177
178impl std::fmt::Debug for super::SearchCasesResponse {
179    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
180        let mut debug_struct = f.debug_struct("SearchCasesResponse");
181        debug_struct.field("cases", &self.cases);
182        debug_struct.field("next_page_token", &self.next_page_token);
183        if !self._unknown_fields.is_empty() {
184            debug_struct.field("_unknown_fields", &self._unknown_fields);
185        }
186        debug_struct.finish()
187    }
188}
189
190impl std::fmt::Debug for super::EscalateCaseRequest {
191    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
192        let mut debug_struct = f.debug_struct("EscalateCaseRequest");
193        debug_struct.field("name", &self.name);
194        debug_struct.field("escalation", &self.escalation);
195        if !self._unknown_fields.is_empty() {
196            debug_struct.field("_unknown_fields", &self._unknown_fields);
197        }
198        debug_struct.finish()
199    }
200}
201
202impl std::fmt::Debug for super::UpdateCaseRequest {
203    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
204        let mut debug_struct = f.debug_struct("UpdateCaseRequest");
205        debug_struct.field("case", &self.case);
206        debug_struct.field("update_mask", &self.update_mask);
207        if !self._unknown_fields.is_empty() {
208            debug_struct.field("_unknown_fields", &self._unknown_fields);
209        }
210        debug_struct.finish()
211    }
212}
213
214impl std::fmt::Debug for super::CloseCaseRequest {
215    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
216        let mut debug_struct = f.debug_struct("CloseCaseRequest");
217        debug_struct.field("name", &self.name);
218        if !self._unknown_fields.is_empty() {
219            debug_struct.field("_unknown_fields", &self._unknown_fields);
220        }
221        debug_struct.finish()
222    }
223}
224
225impl std::fmt::Debug for super::SearchCaseClassificationsRequest {
226    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
227        let mut debug_struct = f.debug_struct("SearchCaseClassificationsRequest");
228        debug_struct.field("query", &self.query);
229        debug_struct.field("page_size", &self.page_size);
230        debug_struct.field("page_token", &self.page_token);
231        if !self._unknown_fields.is_empty() {
232            debug_struct.field("_unknown_fields", &self._unknown_fields);
233        }
234        debug_struct.finish()
235    }
236}
237
238impl std::fmt::Debug for super::SearchCaseClassificationsResponse {
239    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
240        let mut debug_struct = f.debug_struct("SearchCaseClassificationsResponse");
241        debug_struct.field("case_classifications", &self.case_classifications);
242        debug_struct.field("next_page_token", &self.next_page_token);
243        if !self._unknown_fields.is_empty() {
244            debug_struct.field("_unknown_fields", &self._unknown_fields);
245        }
246        debug_struct.finish()
247    }
248}
249
250impl std::fmt::Debug for super::Comment {
251    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
252        let mut debug_struct = f.debug_struct("Comment");
253        debug_struct.field("name", &self.name);
254        debug_struct.field("create_time", &self.create_time);
255        debug_struct.field("creator", &self.creator);
256        debug_struct.field("body", &self.body);
257        debug_struct.field("plain_text_body", &self.plain_text_body);
258        if !self._unknown_fields.is_empty() {
259            debug_struct.field("_unknown_fields", &self._unknown_fields);
260        }
261        debug_struct.finish()
262    }
263}
264
265impl std::fmt::Debug for super::ListCommentsRequest {
266    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
267        let mut debug_struct = f.debug_struct("ListCommentsRequest");
268        debug_struct.field("parent", &self.parent);
269        debug_struct.field("page_size", &self.page_size);
270        debug_struct.field("page_token", &self.page_token);
271        if !self._unknown_fields.is_empty() {
272            debug_struct.field("_unknown_fields", &self._unknown_fields);
273        }
274        debug_struct.finish()
275    }
276}
277
278impl std::fmt::Debug for super::ListCommentsResponse {
279    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
280        let mut debug_struct = f.debug_struct("ListCommentsResponse");
281        debug_struct.field("comments", &self.comments);
282        debug_struct.field("next_page_token", &self.next_page_token);
283        if !self._unknown_fields.is_empty() {
284            debug_struct.field("_unknown_fields", &self._unknown_fields);
285        }
286        debug_struct.finish()
287    }
288}
289
290impl std::fmt::Debug for super::CreateCommentRequest {
291    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
292        let mut debug_struct = f.debug_struct("CreateCommentRequest");
293        debug_struct.field("parent", &self.parent);
294        debug_struct.field("comment", &self.comment);
295        if !self._unknown_fields.is_empty() {
296            debug_struct.field("_unknown_fields", &self._unknown_fields);
297        }
298        debug_struct.finish()
299    }
300}
301
302impl std::fmt::Debug for super::Escalation {
303    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
304        let mut debug_struct = f.debug_struct("Escalation");
305        debug_struct.field("reason", &self.reason);
306        debug_struct.field("justification", &self.justification);
307        if !self._unknown_fields.is_empty() {
308            debug_struct.field("_unknown_fields", &self._unknown_fields);
309        }
310        debug_struct.finish()
311    }
312}