google_cloud_tasks_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::ListQueuesRequest {
21    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
22        let mut debug_struct = f.debug_struct("ListQueuesRequest");
23        debug_struct.field("parent", &self.parent);
24        debug_struct.field("filter", &self.filter);
25        debug_struct.field("page_size", &self.page_size);
26        debug_struct.field("page_token", &self.page_token);
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::ListQueuesResponse {
35    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
36        let mut debug_struct = f.debug_struct("ListQueuesResponse");
37        debug_struct.field("queues", &self.queues);
38        debug_struct.field("next_page_token", &self.next_page_token);
39        if !self._unknown_fields.is_empty() {
40            debug_struct.field("_unknown_fields", &self._unknown_fields);
41        }
42        debug_struct.finish()
43    }
44}
45
46impl std::fmt::Debug for super::GetQueueRequest {
47    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
48        let mut debug_struct = f.debug_struct("GetQueueRequest");
49        debug_struct.field("name", &self.name);
50        if !self._unknown_fields.is_empty() {
51            debug_struct.field("_unknown_fields", &self._unknown_fields);
52        }
53        debug_struct.finish()
54    }
55}
56
57impl std::fmt::Debug for super::CreateQueueRequest {
58    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
59        let mut debug_struct = f.debug_struct("CreateQueueRequest");
60        debug_struct.field("parent", &self.parent);
61        debug_struct.field("queue", &self.queue);
62        if !self._unknown_fields.is_empty() {
63            debug_struct.field("_unknown_fields", &self._unknown_fields);
64        }
65        debug_struct.finish()
66    }
67}
68
69impl std::fmt::Debug for super::UpdateQueueRequest {
70    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
71        let mut debug_struct = f.debug_struct("UpdateQueueRequest");
72        debug_struct.field("queue", &self.queue);
73        debug_struct.field("update_mask", &self.update_mask);
74        if !self._unknown_fields.is_empty() {
75            debug_struct.field("_unknown_fields", &self._unknown_fields);
76        }
77        debug_struct.finish()
78    }
79}
80
81impl std::fmt::Debug for super::DeleteQueueRequest {
82    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
83        let mut debug_struct = f.debug_struct("DeleteQueueRequest");
84        debug_struct.field("name", &self.name);
85        if !self._unknown_fields.is_empty() {
86            debug_struct.field("_unknown_fields", &self._unknown_fields);
87        }
88        debug_struct.finish()
89    }
90}
91
92impl std::fmt::Debug for super::PurgeQueueRequest {
93    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
94        let mut debug_struct = f.debug_struct("PurgeQueueRequest");
95        debug_struct.field("name", &self.name);
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::PauseQueueRequest {
104    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
105        let mut debug_struct = f.debug_struct("PauseQueueRequest");
106        debug_struct.field("name", &self.name);
107        if !self._unknown_fields.is_empty() {
108            debug_struct.field("_unknown_fields", &self._unknown_fields);
109        }
110        debug_struct.finish()
111    }
112}
113
114impl std::fmt::Debug for super::ResumeQueueRequest {
115    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
116        let mut debug_struct = f.debug_struct("ResumeQueueRequest");
117        debug_struct.field("name", &self.name);
118        if !self._unknown_fields.is_empty() {
119            debug_struct.field("_unknown_fields", &self._unknown_fields);
120        }
121        debug_struct.finish()
122    }
123}
124
125impl std::fmt::Debug for super::ListTasksRequest {
126    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
127        let mut debug_struct = f.debug_struct("ListTasksRequest");
128        debug_struct.field("parent", &self.parent);
129        debug_struct.field("response_view", &self.response_view);
130        debug_struct.field("page_size", &self.page_size);
131        debug_struct.field("page_token", &self.page_token);
132        if !self._unknown_fields.is_empty() {
133            debug_struct.field("_unknown_fields", &self._unknown_fields);
134        }
135        debug_struct.finish()
136    }
137}
138
139impl std::fmt::Debug for super::ListTasksResponse {
140    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
141        let mut debug_struct = f.debug_struct("ListTasksResponse");
142        debug_struct.field("tasks", &self.tasks);
143        debug_struct.field("next_page_token", &self.next_page_token);
144        if !self._unknown_fields.is_empty() {
145            debug_struct.field("_unknown_fields", &self._unknown_fields);
146        }
147        debug_struct.finish()
148    }
149}
150
151impl std::fmt::Debug for super::GetTaskRequest {
152    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
153        let mut debug_struct = f.debug_struct("GetTaskRequest");
154        debug_struct.field("name", &self.name);
155        debug_struct.field("response_view", &self.response_view);
156        if !self._unknown_fields.is_empty() {
157            debug_struct.field("_unknown_fields", &self._unknown_fields);
158        }
159        debug_struct.finish()
160    }
161}
162
163impl std::fmt::Debug for super::CreateTaskRequest {
164    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
165        let mut debug_struct = f.debug_struct("CreateTaskRequest");
166        debug_struct.field("parent", &self.parent);
167        debug_struct.field("task", &self.task);
168        debug_struct.field("response_view", &self.response_view);
169        if !self._unknown_fields.is_empty() {
170            debug_struct.field("_unknown_fields", &self._unknown_fields);
171        }
172        debug_struct.finish()
173    }
174}
175
176impl std::fmt::Debug for super::DeleteTaskRequest {
177    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
178        let mut debug_struct = f.debug_struct("DeleteTaskRequest");
179        debug_struct.field("name", &self.name);
180        if !self._unknown_fields.is_empty() {
181            debug_struct.field("_unknown_fields", &self._unknown_fields);
182        }
183        debug_struct.finish()
184    }
185}
186
187impl std::fmt::Debug for super::RunTaskRequest {
188    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
189        let mut debug_struct = f.debug_struct("RunTaskRequest");
190        debug_struct.field("name", &self.name);
191        debug_struct.field("response_view", &self.response_view);
192        if !self._unknown_fields.is_empty() {
193            debug_struct.field("_unknown_fields", &self._unknown_fields);
194        }
195        debug_struct.finish()
196    }
197}
198
199impl std::fmt::Debug for super::Queue {
200    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
201        let mut debug_struct = f.debug_struct("Queue");
202        debug_struct.field("name", &self.name);
203        debug_struct.field(
204            "app_engine_routing_override",
205            &self.app_engine_routing_override,
206        );
207        debug_struct.field("rate_limits", &self.rate_limits);
208        debug_struct.field("retry_config", &self.retry_config);
209        debug_struct.field("state", &self.state);
210        debug_struct.field("purge_time", &self.purge_time);
211        debug_struct.field(
212            "stackdriver_logging_config",
213            &self.stackdriver_logging_config,
214        );
215        if !self._unknown_fields.is_empty() {
216            debug_struct.field("_unknown_fields", &self._unknown_fields);
217        }
218        debug_struct.finish()
219    }
220}
221
222impl std::fmt::Debug for super::RateLimits {
223    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
224        let mut debug_struct = f.debug_struct("RateLimits");
225        debug_struct.field("max_dispatches_per_second", &self.max_dispatches_per_second);
226        debug_struct.field("max_burst_size", &self.max_burst_size);
227        debug_struct.field("max_concurrent_dispatches", &self.max_concurrent_dispatches);
228        if !self._unknown_fields.is_empty() {
229            debug_struct.field("_unknown_fields", &self._unknown_fields);
230        }
231        debug_struct.finish()
232    }
233}
234
235impl std::fmt::Debug for super::RetryConfig {
236    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
237        let mut debug_struct = f.debug_struct("RetryConfig");
238        debug_struct.field("max_attempts", &self.max_attempts);
239        debug_struct.field("max_retry_duration", &self.max_retry_duration);
240        debug_struct.field("min_backoff", &self.min_backoff);
241        debug_struct.field("max_backoff", &self.max_backoff);
242        debug_struct.field("max_doublings", &self.max_doublings);
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::StackdriverLoggingConfig {
251    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
252        let mut debug_struct = f.debug_struct("StackdriverLoggingConfig");
253        debug_struct.field("sampling_ratio", &self.sampling_ratio);
254        if !self._unknown_fields.is_empty() {
255            debug_struct.field("_unknown_fields", &self._unknown_fields);
256        }
257        debug_struct.finish()
258    }
259}
260
261impl std::fmt::Debug for super::HttpRequest {
262    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
263        let mut debug_struct = f.debug_struct("HttpRequest");
264        debug_struct.field("url", &self.url);
265        debug_struct.field("http_method", &self.http_method);
266        debug_struct.field("headers", &self.headers);
267        debug_struct.field("body", &self.body);
268        debug_struct.field("authorization_header", &self.authorization_header);
269        if !self._unknown_fields.is_empty() {
270            debug_struct.field("_unknown_fields", &self._unknown_fields);
271        }
272        debug_struct.finish()
273    }
274}
275
276impl std::fmt::Debug for super::AppEngineHttpRequest {
277    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
278        let mut debug_struct = f.debug_struct("AppEngineHttpRequest");
279        debug_struct.field("http_method", &self.http_method);
280        debug_struct.field("app_engine_routing", &self.app_engine_routing);
281        debug_struct.field("relative_uri", &self.relative_uri);
282        debug_struct.field("headers", &self.headers);
283        debug_struct.field("body", &self.body);
284        if !self._unknown_fields.is_empty() {
285            debug_struct.field("_unknown_fields", &self._unknown_fields);
286        }
287        debug_struct.finish()
288    }
289}
290
291impl std::fmt::Debug for super::AppEngineRouting {
292    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
293        let mut debug_struct = f.debug_struct("AppEngineRouting");
294        debug_struct.field("service", &self.service);
295        debug_struct.field("version", &self.version);
296        debug_struct.field("instance", &self.instance);
297        debug_struct.field("host", &self.host);
298        if !self._unknown_fields.is_empty() {
299            debug_struct.field("_unknown_fields", &self._unknown_fields);
300        }
301        debug_struct.finish()
302    }
303}
304
305impl std::fmt::Debug for super::OAuthToken {
306    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
307        let mut debug_struct = f.debug_struct("OAuthToken");
308        debug_struct.field("service_account_email", &self.service_account_email);
309        debug_struct.field("scope", &self.scope);
310        if !self._unknown_fields.is_empty() {
311            debug_struct.field("_unknown_fields", &self._unknown_fields);
312        }
313        debug_struct.finish()
314    }
315}
316
317impl std::fmt::Debug for super::OidcToken {
318    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
319        let mut debug_struct = f.debug_struct("OidcToken");
320        debug_struct.field("service_account_email", &self.service_account_email);
321        debug_struct.field("audience", &self.audience);
322        if !self._unknown_fields.is_empty() {
323            debug_struct.field("_unknown_fields", &self._unknown_fields);
324        }
325        debug_struct.finish()
326    }
327}
328
329impl std::fmt::Debug for super::Task {
330    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
331        let mut debug_struct = f.debug_struct("Task");
332        debug_struct.field("name", &self.name);
333        debug_struct.field("schedule_time", &self.schedule_time);
334        debug_struct.field("create_time", &self.create_time);
335        debug_struct.field("dispatch_deadline", &self.dispatch_deadline);
336        debug_struct.field("dispatch_count", &self.dispatch_count);
337        debug_struct.field("response_count", &self.response_count);
338        debug_struct.field("first_attempt", &self.first_attempt);
339        debug_struct.field("last_attempt", &self.last_attempt);
340        debug_struct.field("view", &self.view);
341        debug_struct.field("message_type", &self.message_type);
342        if !self._unknown_fields.is_empty() {
343            debug_struct.field("_unknown_fields", &self._unknown_fields);
344        }
345        debug_struct.finish()
346    }
347}
348
349impl std::fmt::Debug for super::Attempt {
350    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
351        let mut debug_struct = f.debug_struct("Attempt");
352        debug_struct.field("schedule_time", &self.schedule_time);
353        debug_struct.field("dispatch_time", &self.dispatch_time);
354        debug_struct.field("response_time", &self.response_time);
355        debug_struct.field("response_status", &self.response_status);
356        if !self._unknown_fields.is_empty() {
357            debug_struct.field("_unknown_fields", &self._unknown_fields);
358        }
359        debug_struct.finish()
360    }
361}