Skip to main content

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::BatchCreateTasksRequest {
177    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
178        let mut debug_struct = f.debug_struct("BatchCreateTasksRequest");
179        debug_struct.field("parent", &self.parent);
180        debug_struct.field("requests", &self.requests);
181        debug_struct.field("request_id", &self.request_id);
182        if !self._unknown_fields.is_empty() {
183            debug_struct.field("_unknown_fields", &self._unknown_fields);
184        }
185        debug_struct.finish()
186    }
187}
188
189impl std::fmt::Debug for super::DeleteTaskRequest {
190    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
191        let mut debug_struct = f.debug_struct("DeleteTaskRequest");
192        debug_struct.field("name", &self.name);
193        if !self._unknown_fields.is_empty() {
194            debug_struct.field("_unknown_fields", &self._unknown_fields);
195        }
196        debug_struct.finish()
197    }
198}
199
200impl std::fmt::Debug for super::BatchDeleteTasksRequest {
201    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
202        let mut debug_struct = f.debug_struct("BatchDeleteTasksRequest");
203        debug_struct.field("parent", &self.parent);
204        debug_struct.field("names", &self.names);
205        debug_struct.field("request_id", &self.request_id);
206        if !self._unknown_fields.is_empty() {
207            debug_struct.field("_unknown_fields", &self._unknown_fields);
208        }
209        debug_struct.finish()
210    }
211}
212
213impl std::fmt::Debug for super::BatchDeleteTasksMetadata {
214    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
215        let mut debug_struct = f.debug_struct("BatchDeleteTasksMetadata");
216        debug_struct.field("start_time", &self.start_time);
217        debug_struct.field("end_time", &self.end_time);
218        debug_struct.field("state", &self.state);
219        debug_struct.field("failed_requests", &self.failed_requests);
220        if !self._unknown_fields.is_empty() {
221            debug_struct.field("_unknown_fields", &self._unknown_fields);
222        }
223        debug_struct.finish()
224    }
225}
226
227impl std::fmt::Debug for super::RunTaskRequest {
228    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
229        let mut debug_struct = f.debug_struct("RunTaskRequest");
230        debug_struct.field("name", &self.name);
231        debug_struct.field("response_view", &self.response_view);
232        if !self._unknown_fields.is_empty() {
233            debug_struct.field("_unknown_fields", &self._unknown_fields);
234        }
235        debug_struct.finish()
236    }
237}
238
239impl std::fmt::Debug for super::UpdateCmekConfigRequest {
240    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
241        let mut debug_struct = f.debug_struct("UpdateCmekConfigRequest");
242        debug_struct.field("cmek_config", &self.cmek_config);
243        debug_struct.field("update_mask", &self.update_mask);
244        if !self._unknown_fields.is_empty() {
245            debug_struct.field("_unknown_fields", &self._unknown_fields);
246        }
247        debug_struct.finish()
248    }
249}
250
251impl std::fmt::Debug for super::GetCmekConfigRequest {
252    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
253        let mut debug_struct = f.debug_struct("GetCmekConfigRequest");
254        debug_struct.field("name", &self.name);
255        if !self._unknown_fields.is_empty() {
256            debug_struct.field("_unknown_fields", &self._unknown_fields);
257        }
258        debug_struct.finish()
259    }
260}
261
262impl std::fmt::Debug for super::BatchCreateTasksResponse {
263    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
264        let mut debug_struct = f.debug_struct("BatchCreateTasksResponse");
265        debug_struct.field("tasks", &self.tasks);
266        if !self._unknown_fields.is_empty() {
267            debug_struct.field("_unknown_fields", &self._unknown_fields);
268        }
269        debug_struct.finish()
270    }
271}
272
273impl std::fmt::Debug for super::BatchCreateTasksMetadata {
274    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
275        let mut debug_struct = f.debug_struct("BatchCreateTasksMetadata");
276        debug_struct.field("start_time", &self.start_time);
277        debug_struct.field("end_time", &self.end_time);
278        debug_struct.field("state", &self.state);
279        debug_struct.field("failed_requests", &self.failed_requests);
280        if !self._unknown_fields.is_empty() {
281            debug_struct.field("_unknown_fields", &self._unknown_fields);
282        }
283        debug_struct.finish()
284    }
285}
286
287impl std::fmt::Debug for super::CmekConfig {
288    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
289        let mut debug_struct = f.debug_struct("CmekConfig");
290        debug_struct.field("name", &self.name);
291        debug_struct.field("kms_key", &self.kms_key);
292        if !self._unknown_fields.is_empty() {
293            debug_struct.field("_unknown_fields", &self._unknown_fields);
294        }
295        debug_struct.finish()
296    }
297}
298
299impl std::fmt::Debug for super::Queue {
300    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
301        let mut debug_struct = f.debug_struct("Queue");
302        debug_struct.field("name", &self.name);
303        debug_struct.field(
304            "app_engine_routing_override",
305            &self.app_engine_routing_override,
306        );
307        debug_struct.field("http_target", &self.http_target);
308        debug_struct.field("rate_limits", &self.rate_limits);
309        debug_struct.field("retry_config", &self.retry_config);
310        debug_struct.field("state", &self.state);
311        debug_struct.field("purge_time", &self.purge_time);
312        debug_struct.field(
313            "stackdriver_logging_config",
314            &self.stackdriver_logging_config,
315        );
316        if !self._unknown_fields.is_empty() {
317            debug_struct.field("_unknown_fields", &self._unknown_fields);
318        }
319        debug_struct.finish()
320    }
321}
322
323impl std::fmt::Debug for super::RateLimits {
324    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
325        let mut debug_struct = f.debug_struct("RateLimits");
326        debug_struct.field("max_dispatches_per_second", &self.max_dispatches_per_second);
327        debug_struct.field("max_burst_size", &self.max_burst_size);
328        debug_struct.field("max_concurrent_dispatches", &self.max_concurrent_dispatches);
329        if !self._unknown_fields.is_empty() {
330            debug_struct.field("_unknown_fields", &self._unknown_fields);
331        }
332        debug_struct.finish()
333    }
334}
335
336impl std::fmt::Debug for super::RetryConfig {
337    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
338        let mut debug_struct = f.debug_struct("RetryConfig");
339        debug_struct.field("max_attempts", &self.max_attempts);
340        debug_struct.field("max_retry_duration", &self.max_retry_duration);
341        debug_struct.field("min_backoff", &self.min_backoff);
342        debug_struct.field("max_backoff", &self.max_backoff);
343        debug_struct.field("max_doublings", &self.max_doublings);
344        if !self._unknown_fields.is_empty() {
345            debug_struct.field("_unknown_fields", &self._unknown_fields);
346        }
347        debug_struct.finish()
348    }
349}
350
351impl std::fmt::Debug for super::StackdriverLoggingConfig {
352    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
353        let mut debug_struct = f.debug_struct("StackdriverLoggingConfig");
354        debug_struct.field("sampling_ratio", &self.sampling_ratio);
355        if !self._unknown_fields.is_empty() {
356            debug_struct.field("_unknown_fields", &self._unknown_fields);
357        }
358        debug_struct.finish()
359    }
360}
361
362impl std::fmt::Debug for super::PathOverride {
363    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
364        let mut debug_struct = f.debug_struct("PathOverride");
365        debug_struct.field("path", &self.path);
366        if !self._unknown_fields.is_empty() {
367            debug_struct.field("_unknown_fields", &self._unknown_fields);
368        }
369        debug_struct.finish()
370    }
371}
372
373impl std::fmt::Debug for super::QueryOverride {
374    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
375        let mut debug_struct = f.debug_struct("QueryOverride");
376        debug_struct.field("query_params", &self.query_params);
377        if !self._unknown_fields.is_empty() {
378            debug_struct.field("_unknown_fields", &self._unknown_fields);
379        }
380        debug_struct.finish()
381    }
382}
383
384impl std::fmt::Debug for super::UriOverride {
385    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
386        let mut debug_struct = f.debug_struct("UriOverride");
387        debug_struct.field("scheme", &self.scheme);
388        debug_struct.field("host", &self.host);
389        debug_struct.field("port", &self.port);
390        debug_struct.field("path_override", &self.path_override);
391        debug_struct.field("query_override", &self.query_override);
392        debug_struct.field("uri_override_enforce_mode", &self.uri_override_enforce_mode);
393        if !self._unknown_fields.is_empty() {
394            debug_struct.field("_unknown_fields", &self._unknown_fields);
395        }
396        debug_struct.finish()
397    }
398}
399
400impl std::fmt::Debug for super::HttpTarget {
401    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
402        let mut debug_struct = f.debug_struct("HttpTarget");
403        debug_struct.field("uri_override", &self.uri_override);
404        debug_struct.field("http_method", &self.http_method);
405        debug_struct.field("header_overrides", &self.header_overrides);
406        debug_struct.field("authorization_header", &self.authorization_header);
407        if !self._unknown_fields.is_empty() {
408            debug_struct.field("_unknown_fields", &self._unknown_fields);
409        }
410        debug_struct.finish()
411    }
412}
413
414impl std::fmt::Debug for super::http_target::Header {
415    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
416        let mut debug_struct = f.debug_struct("Header");
417        debug_struct.field("key", &self.key);
418        debug_struct.field("value", &self.value);
419        if !self._unknown_fields.is_empty() {
420            debug_struct.field("_unknown_fields", &self._unknown_fields);
421        }
422        debug_struct.finish()
423    }
424}
425
426impl std::fmt::Debug for super::http_target::HeaderOverride {
427    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
428        let mut debug_struct = f.debug_struct("HeaderOverride");
429        debug_struct.field("header", &self.header);
430        if !self._unknown_fields.is_empty() {
431            debug_struct.field("_unknown_fields", &self._unknown_fields);
432        }
433        debug_struct.finish()
434    }
435}
436
437impl std::fmt::Debug for super::HttpRequest {
438    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
439        let mut debug_struct = f.debug_struct("HttpRequest");
440        debug_struct.field("url", &self.url);
441        debug_struct.field("http_method", &self.http_method);
442        debug_struct.field("headers", &self.headers);
443        debug_struct.field("body", &self.body);
444        debug_struct.field("authorization_header", &self.authorization_header);
445        if !self._unknown_fields.is_empty() {
446            debug_struct.field("_unknown_fields", &self._unknown_fields);
447        }
448        debug_struct.finish()
449    }
450}
451
452impl std::fmt::Debug for super::AppEngineHttpRequest {
453    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
454        let mut debug_struct = f.debug_struct("AppEngineHttpRequest");
455        debug_struct.field("http_method", &self.http_method);
456        debug_struct.field("app_engine_routing", &self.app_engine_routing);
457        debug_struct.field("relative_uri", &self.relative_uri);
458        debug_struct.field("headers", &self.headers);
459        debug_struct.field("body", &self.body);
460        if !self._unknown_fields.is_empty() {
461            debug_struct.field("_unknown_fields", &self._unknown_fields);
462        }
463        debug_struct.finish()
464    }
465}
466
467impl std::fmt::Debug for super::AppEngineRouting {
468    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
469        let mut debug_struct = f.debug_struct("AppEngineRouting");
470        debug_struct.field("service", &self.service);
471        debug_struct.field("version", &self.version);
472        debug_struct.field("instance", &self.instance);
473        debug_struct.field("host", &self.host);
474        if !self._unknown_fields.is_empty() {
475            debug_struct.field("_unknown_fields", &self._unknown_fields);
476        }
477        debug_struct.finish()
478    }
479}
480
481impl std::fmt::Debug for super::OAuthToken {
482    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
483        let mut debug_struct = f.debug_struct("OAuthToken");
484        debug_struct.field("service_account_email", &self.service_account_email);
485        debug_struct.field("scope", &self.scope);
486        if !self._unknown_fields.is_empty() {
487            debug_struct.field("_unknown_fields", &self._unknown_fields);
488        }
489        debug_struct.finish()
490    }
491}
492
493impl std::fmt::Debug for super::OidcToken {
494    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
495        let mut debug_struct = f.debug_struct("OidcToken");
496        debug_struct.field("service_account_email", &self.service_account_email);
497        debug_struct.field("audience", &self.audience);
498        if !self._unknown_fields.is_empty() {
499            debug_struct.field("_unknown_fields", &self._unknown_fields);
500        }
501        debug_struct.finish()
502    }
503}
504
505impl std::fmt::Debug for super::Task {
506    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
507        let mut debug_struct = f.debug_struct("Task");
508        debug_struct.field("name", &self.name);
509        debug_struct.field("schedule_time", &self.schedule_time);
510        debug_struct.field("create_time", &self.create_time);
511        debug_struct.field("dispatch_deadline", &self.dispatch_deadline);
512        debug_struct.field("dispatch_count", &self.dispatch_count);
513        debug_struct.field("response_count", &self.response_count);
514        debug_struct.field("first_attempt", &self.first_attempt);
515        debug_struct.field("last_attempt", &self.last_attempt);
516        debug_struct.field("view", &self.view);
517        debug_struct.field("retry_config", &self.retry_config);
518        debug_struct.field("message_type", &self.message_type);
519        if !self._unknown_fields.is_empty() {
520            debug_struct.field("_unknown_fields", &self._unknown_fields);
521        }
522        debug_struct.finish()
523    }
524}
525
526impl std::fmt::Debug for super::Attempt {
527    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
528        let mut debug_struct = f.debug_struct("Attempt");
529        debug_struct.field("schedule_time", &self.schedule_time);
530        debug_struct.field("dispatch_time", &self.dispatch_time);
531        debug_struct.field("response_time", &self.response_time);
532        debug_struct.field("response_status", &self.response_status);
533        if !self._unknown_fields.is_empty() {
534            debug_struct.field("_unknown_fields", &self._unknown_fields);
535        }
536        debug_struct.finish()
537    }
538}