Skip to main content

google_cloud_scheduler_v1/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::ListJobsRequest {
21    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
22        let mut debug_struct = f.debug_struct("ListJobsRequest");
23        debug_struct.field("parent", &self.parent);
24        debug_struct.field("page_size", &self.page_size);
25        debug_struct.field("page_token", &self.page_token);
26        if !self._unknown_fields.is_empty() {
27            debug_struct.field("_unknown_fields", &self._unknown_fields);
28        }
29        debug_struct.finish()
30    }
31}
32
33impl std::fmt::Debug for super::ListJobsResponse {
34    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
35        let mut debug_struct = f.debug_struct("ListJobsResponse");
36        debug_struct.field("jobs", &self.jobs);
37        debug_struct.field("next_page_token", &self.next_page_token);
38        if !self._unknown_fields.is_empty() {
39            debug_struct.field("_unknown_fields", &self._unknown_fields);
40        }
41        debug_struct.finish()
42    }
43}
44
45impl std::fmt::Debug for super::GetJobRequest {
46    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
47        let mut debug_struct = f.debug_struct("GetJobRequest");
48        debug_struct.field("name", &self.name);
49        if !self._unknown_fields.is_empty() {
50            debug_struct.field("_unknown_fields", &self._unknown_fields);
51        }
52        debug_struct.finish()
53    }
54}
55
56impl std::fmt::Debug for super::CreateJobRequest {
57    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
58        let mut debug_struct = f.debug_struct("CreateJobRequest");
59        debug_struct.field("parent", &self.parent);
60        debug_struct.field("job", &self.job);
61        if !self._unknown_fields.is_empty() {
62            debug_struct.field("_unknown_fields", &self._unknown_fields);
63        }
64        debug_struct.finish()
65    }
66}
67
68impl std::fmt::Debug for super::UpdateJobRequest {
69    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
70        let mut debug_struct = f.debug_struct("UpdateJobRequest");
71        debug_struct.field("job", &self.job);
72        debug_struct.field("update_mask", &self.update_mask);
73        if !self._unknown_fields.is_empty() {
74            debug_struct.field("_unknown_fields", &self._unknown_fields);
75        }
76        debug_struct.finish()
77    }
78}
79
80impl std::fmt::Debug for super::DeleteJobRequest {
81    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
82        let mut debug_struct = f.debug_struct("DeleteJobRequest");
83        debug_struct.field("name", &self.name);
84        if !self._unknown_fields.is_empty() {
85            debug_struct.field("_unknown_fields", &self._unknown_fields);
86        }
87        debug_struct.finish()
88    }
89}
90
91impl std::fmt::Debug for super::PauseJobRequest {
92    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
93        let mut debug_struct = f.debug_struct("PauseJobRequest");
94        debug_struct.field("name", &self.name);
95        if !self._unknown_fields.is_empty() {
96            debug_struct.field("_unknown_fields", &self._unknown_fields);
97        }
98        debug_struct.finish()
99    }
100}
101
102impl std::fmt::Debug for super::ResumeJobRequest {
103    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
104        let mut debug_struct = f.debug_struct("ResumeJobRequest");
105        debug_struct.field("name", &self.name);
106        if !self._unknown_fields.is_empty() {
107            debug_struct.field("_unknown_fields", &self._unknown_fields);
108        }
109        debug_struct.finish()
110    }
111}
112
113impl std::fmt::Debug for super::RunJobRequest {
114    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
115        let mut debug_struct = f.debug_struct("RunJobRequest");
116        debug_struct.field("name", &self.name);
117        if !self._unknown_fields.is_empty() {
118            debug_struct.field("_unknown_fields", &self._unknown_fields);
119        }
120        debug_struct.finish()
121    }
122}
123
124impl std::fmt::Debug for super::Job {
125    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
126        let mut debug_struct = f.debug_struct("Job");
127        debug_struct.field("name", &self.name);
128        debug_struct.field("description", &self.description);
129        debug_struct.field("schedule", &self.schedule);
130        debug_struct.field("time_zone", &self.time_zone);
131        debug_struct.field("user_update_time", &self.user_update_time);
132        debug_struct.field("state", &self.state);
133        debug_struct.field("status", &self.status);
134        debug_struct.field("schedule_time", &self.schedule_time);
135        debug_struct.field("last_attempt_time", &self.last_attempt_time);
136        debug_struct.field("retry_config", &self.retry_config);
137        debug_struct.field("attempt_deadline", &self.attempt_deadline);
138        debug_struct.field("target", &self.target);
139        if !self._unknown_fields.is_empty() {
140            debug_struct.field("_unknown_fields", &self._unknown_fields);
141        }
142        debug_struct.finish()
143    }
144}
145
146impl std::fmt::Debug for super::RetryConfig {
147    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
148        let mut debug_struct = f.debug_struct("RetryConfig");
149        debug_struct.field("retry_count", &self.retry_count);
150        debug_struct.field("max_retry_duration", &self.max_retry_duration);
151        debug_struct.field("min_backoff_duration", &self.min_backoff_duration);
152        debug_struct.field("max_backoff_duration", &self.max_backoff_duration);
153        debug_struct.field("max_doublings", &self.max_doublings);
154        if !self._unknown_fields.is_empty() {
155            debug_struct.field("_unknown_fields", &self._unknown_fields);
156        }
157        debug_struct.finish()
158    }
159}
160
161impl std::fmt::Debug for super::HttpTarget {
162    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
163        let mut debug_struct = f.debug_struct("HttpTarget");
164        debug_struct.field("uri", &self.uri);
165        debug_struct.field("http_method", &self.http_method);
166        debug_struct.field("headers", &self.headers);
167        debug_struct.field("body", &self.body);
168        debug_struct.field("authorization_header", &self.authorization_header);
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::AppEngineHttpTarget {
177    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
178        let mut debug_struct = f.debug_struct("AppEngineHttpTarget");
179        debug_struct.field("http_method", &self.http_method);
180        debug_struct.field("app_engine_routing", &self.app_engine_routing);
181        debug_struct.field("relative_uri", &self.relative_uri);
182        debug_struct.field("headers", &self.headers);
183        debug_struct.field("body", &self.body);
184        if !self._unknown_fields.is_empty() {
185            debug_struct.field("_unknown_fields", &self._unknown_fields);
186        }
187        debug_struct.finish()
188    }
189}
190
191impl std::fmt::Debug for super::PubsubTarget {
192    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
193        let mut debug_struct = f.debug_struct("PubsubTarget");
194        debug_struct.field("topic_name", &self.topic_name);
195        debug_struct.field("data", &self.data);
196        debug_struct.field("attributes", &self.attributes);
197        if !self._unknown_fields.is_empty() {
198            debug_struct.field("_unknown_fields", &self._unknown_fields);
199        }
200        debug_struct.finish()
201    }
202}
203
204impl std::fmt::Debug for super::AppEngineRouting {
205    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
206        let mut debug_struct = f.debug_struct("AppEngineRouting");
207        debug_struct.field("service", &self.service);
208        debug_struct.field("version", &self.version);
209        debug_struct.field("instance", &self.instance);
210        debug_struct.field("host", &self.host);
211        if !self._unknown_fields.is_empty() {
212            debug_struct.field("_unknown_fields", &self._unknown_fields);
213        }
214        debug_struct.finish()
215    }
216}
217
218impl std::fmt::Debug for super::OAuthToken {
219    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
220        let mut debug_struct = f.debug_struct("OAuthToken");
221        debug_struct.field("service_account_email", &self.service_account_email);
222        debug_struct.field("scope", &self.scope);
223        if !self._unknown_fields.is_empty() {
224            debug_struct.field("_unknown_fields", &self._unknown_fields);
225        }
226        debug_struct.finish()
227    }
228}
229
230impl std::fmt::Debug for super::OidcToken {
231    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
232        let mut debug_struct = f.debug_struct("OidcToken");
233        debug_struct.field("service_account_email", &self.service_account_email);
234        debug_struct.field("audience", &self.audience);
235        if !self._unknown_fields.is_empty() {
236            debug_struct.field("_unknown_fields", &self._unknown_fields);
237        }
238        debug_struct.finish()
239    }
240}