google_cloud_api_servicecontrol_v1/model/
debug.rs1#[allow(unused_imports)]
18use super::*;
19
20impl std::fmt::Debug for super::CheckError {
21 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
22 let mut debug_struct = f.debug_struct("CheckError");
23 debug_struct.field("code", &self.code);
24 debug_struct.field("subject", &self.subject);
25 debug_struct.field("detail", &self.detail);
26 debug_struct.field("status", &self.status);
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::Distribution {
35 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
36 let mut debug_struct = f.debug_struct("Distribution");
37 debug_struct.field("count", &self.count);
38 debug_struct.field("mean", &self.mean);
39 debug_struct.field("minimum", &self.minimum);
40 debug_struct.field("maximum", &self.maximum);
41 debug_struct.field("sum_of_squared_deviation", &self.sum_of_squared_deviation);
42 debug_struct.field("bucket_counts", &self.bucket_counts);
43 debug_struct.field("exemplars", &self.exemplars);
44 debug_struct.field("bucket_option", &self.bucket_option);
45 if !self._unknown_fields.is_empty() {
46 debug_struct.field("_unknown_fields", &self._unknown_fields);
47 }
48 debug_struct.finish()
49 }
50}
51
52impl std::fmt::Debug for super::distribution::LinearBuckets {
53 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
54 let mut debug_struct = f.debug_struct("LinearBuckets");
55 debug_struct.field("num_finite_buckets", &self.num_finite_buckets);
56 debug_struct.field("width", &self.width);
57 debug_struct.field("offset", &self.offset);
58 if !self._unknown_fields.is_empty() {
59 debug_struct.field("_unknown_fields", &self._unknown_fields);
60 }
61 debug_struct.finish()
62 }
63}
64
65impl std::fmt::Debug for super::distribution::ExponentialBuckets {
66 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
67 let mut debug_struct = f.debug_struct("ExponentialBuckets");
68 debug_struct.field("num_finite_buckets", &self.num_finite_buckets);
69 debug_struct.field("growth_factor", &self.growth_factor);
70 debug_struct.field("scale", &self.scale);
71 if !self._unknown_fields.is_empty() {
72 debug_struct.field("_unknown_fields", &self._unknown_fields);
73 }
74 debug_struct.finish()
75 }
76}
77
78impl std::fmt::Debug for super::distribution::ExplicitBuckets {
79 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
80 let mut debug_struct = f.debug_struct("ExplicitBuckets");
81 debug_struct.field("bounds", &self.bounds);
82 if !self._unknown_fields.is_empty() {
83 debug_struct.field("_unknown_fields", &self._unknown_fields);
84 }
85 debug_struct.finish()
86 }
87}
88
89impl std::fmt::Debug for super::HttpRequest {
90 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
91 let mut debug_struct = f.debug_struct("HttpRequest");
92 debug_struct.field("request_method", &self.request_method);
93 debug_struct.field("request_url", &self.request_url);
94 debug_struct.field("request_size", &self.request_size);
95 debug_struct.field("status", &self.status);
96 debug_struct.field("response_size", &self.response_size);
97 debug_struct.field("user_agent", &self.user_agent);
98 debug_struct.field("remote_ip", &self.remote_ip);
99 debug_struct.field("server_ip", &self.server_ip);
100 debug_struct.field("referer", &self.referer);
101 debug_struct.field("latency", &self.latency);
102 debug_struct.field("cache_lookup", &self.cache_lookup);
103 debug_struct.field("cache_hit", &self.cache_hit);
104 debug_struct.field(
105 "cache_validated_with_origin_server",
106 &self.cache_validated_with_origin_server,
107 );
108 debug_struct.field("cache_fill_bytes", &self.cache_fill_bytes);
109 debug_struct.field("protocol", &self.protocol);
110 if !self._unknown_fields.is_empty() {
111 debug_struct.field("_unknown_fields", &self._unknown_fields);
112 }
113 debug_struct.finish()
114 }
115}
116
117impl std::fmt::Debug for super::LogEntry {
118 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
119 let mut debug_struct = f.debug_struct("LogEntry");
120 debug_struct.field("name", &self.name);
121 debug_struct.field("timestamp", &self.timestamp);
122 debug_struct.field("severity", &self.severity);
123 debug_struct.field("http_request", &self.http_request);
124 debug_struct.field("trace", &self.trace);
125 debug_struct.field("insert_id", &self.insert_id);
126 debug_struct.field("labels", &self.labels);
127 debug_struct.field("operation", &self.operation);
128 debug_struct.field("source_location", &self.source_location);
129 debug_struct.field("payload", &self.payload);
130 if !self._unknown_fields.is_empty() {
131 debug_struct.field("_unknown_fields", &self._unknown_fields);
132 }
133 debug_struct.finish()
134 }
135}
136
137impl std::fmt::Debug for super::LogEntryOperation {
138 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
139 let mut debug_struct = f.debug_struct("LogEntryOperation");
140 debug_struct.field("id", &self.id);
141 debug_struct.field("producer", &self.producer);
142 debug_struct.field("first", &self.first);
143 debug_struct.field("last", &self.last);
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::LogEntrySourceLocation {
152 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
153 let mut debug_struct = f.debug_struct("LogEntrySourceLocation");
154 debug_struct.field("file", &self.file);
155 debug_struct.field("line", &self.line);
156 debug_struct.field("function", &self.function);
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::MetricValue {
165 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
166 let mut debug_struct = f.debug_struct("MetricValue");
167 debug_struct.field("labels", &self.labels);
168 debug_struct.field("start_time", &self.start_time);
169 debug_struct.field("end_time", &self.end_time);
170 debug_struct.field("value", &self.value);
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::MetricValueSet {
179 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
180 let mut debug_struct = f.debug_struct("MetricValueSet");
181 debug_struct.field("metric_name", &self.metric_name);
182 debug_struct.field("metric_values", &self.metric_values);
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::Operation {
191 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
192 let mut debug_struct = f.debug_struct("Operation");
193 debug_struct.field("operation_id", &self.operation_id);
194 debug_struct.field("operation_name", &self.operation_name);
195 debug_struct.field("consumer_id", &self.consumer_id);
196 debug_struct.field("start_time", &self.start_time);
197 debug_struct.field("end_time", &self.end_time);
198 debug_struct.field("labels", &self.labels);
199 debug_struct.field("metric_value_sets", &self.metric_value_sets);
200 debug_struct.field("log_entries", &self.log_entries);
201 debug_struct.field("importance", &self.importance);
202 debug_struct.field("extensions", &self.extensions);
203 if !self._unknown_fields.is_empty() {
204 debug_struct.field("_unknown_fields", &self._unknown_fields);
205 }
206 debug_struct.finish()
207 }
208}
209
210impl std::fmt::Debug for super::AllocateQuotaRequest {
211 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
212 let mut debug_struct = f.debug_struct("AllocateQuotaRequest");
213 debug_struct.field("service_name", &self.service_name);
214 debug_struct.field("allocate_operation", &self.allocate_operation);
215 debug_struct.field("service_config_id", &self.service_config_id);
216 if !self._unknown_fields.is_empty() {
217 debug_struct.field("_unknown_fields", &self._unknown_fields);
218 }
219 debug_struct.finish()
220 }
221}
222
223impl std::fmt::Debug for super::QuotaOperation {
224 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
225 let mut debug_struct = f.debug_struct("QuotaOperation");
226 debug_struct.field("operation_id", &self.operation_id);
227 debug_struct.field("method_name", &self.method_name);
228 debug_struct.field("consumer_id", &self.consumer_id);
229 debug_struct.field("labels", &self.labels);
230 debug_struct.field("quota_metrics", &self.quota_metrics);
231 debug_struct.field("quota_mode", &self.quota_mode);
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::AllocateQuotaResponse {
240 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
241 let mut debug_struct = f.debug_struct("AllocateQuotaResponse");
242 debug_struct.field("operation_id", &self.operation_id);
243 debug_struct.field("allocate_errors", &self.allocate_errors);
244 debug_struct.field("quota_metrics", &self.quota_metrics);
245 debug_struct.field("service_config_id", &self.service_config_id);
246 if !self._unknown_fields.is_empty() {
247 debug_struct.field("_unknown_fields", &self._unknown_fields);
248 }
249 debug_struct.finish()
250 }
251}
252
253impl std::fmt::Debug for super::QuotaError {
254 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
255 let mut debug_struct = f.debug_struct("QuotaError");
256 debug_struct.field("code", &self.code);
257 debug_struct.field("subject", &self.subject);
258 debug_struct.field("description", &self.description);
259 debug_struct.field("status", &self.status);
260 if !self._unknown_fields.is_empty() {
261 debug_struct.field("_unknown_fields", &self._unknown_fields);
262 }
263 debug_struct.finish()
264 }
265}
266
267impl std::fmt::Debug for super::CheckRequest {
268 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
269 let mut debug_struct = f.debug_struct("CheckRequest");
270 debug_struct.field("service_name", &self.service_name);
271 debug_struct.field("operation", &self.operation);
272 debug_struct.field("service_config_id", &self.service_config_id);
273 if !self._unknown_fields.is_empty() {
274 debug_struct.field("_unknown_fields", &self._unknown_fields);
275 }
276 debug_struct.finish()
277 }
278}
279
280impl std::fmt::Debug for super::CheckResponse {
281 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
282 let mut debug_struct = f.debug_struct("CheckResponse");
283 debug_struct.field("operation_id", &self.operation_id);
284 debug_struct.field("check_errors", &self.check_errors);
285 debug_struct.field("service_config_id", &self.service_config_id);
286 debug_struct.field("service_rollout_id", &self.service_rollout_id);
287 debug_struct.field("check_info", &self.check_info);
288 if !self._unknown_fields.is_empty() {
289 debug_struct.field("_unknown_fields", &self._unknown_fields);
290 }
291 debug_struct.finish()
292 }
293}
294
295impl std::fmt::Debug for super::check_response::CheckInfo {
296 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
297 let mut debug_struct = f.debug_struct("CheckInfo");
298 debug_struct.field("unused_arguments", &self.unused_arguments);
299 debug_struct.field("consumer_info", &self.consumer_info);
300 debug_struct.field("api_key_uid", &self.api_key_uid);
301 if !self._unknown_fields.is_empty() {
302 debug_struct.field("_unknown_fields", &self._unknown_fields);
303 }
304 debug_struct.finish()
305 }
306}
307
308impl std::fmt::Debug for super::check_response::ConsumerInfo {
309 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
310 let mut debug_struct = f.debug_struct("ConsumerInfo");
311 debug_struct.field("project_number", &self.project_number);
312 debug_struct.field("r#type", &self.r#type);
313 debug_struct.field("consumer_number", &self.consumer_number);
314 if !self._unknown_fields.is_empty() {
315 debug_struct.field("_unknown_fields", &self._unknown_fields);
316 }
317 debug_struct.finish()
318 }
319}
320
321impl std::fmt::Debug for super::ReportRequest {
322 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
323 let mut debug_struct = f.debug_struct("ReportRequest");
324 debug_struct.field("service_name", &self.service_name);
325 debug_struct.field("operations", &self.operations);
326 debug_struct.field("service_config_id", &self.service_config_id);
327 if !self._unknown_fields.is_empty() {
328 debug_struct.field("_unknown_fields", &self._unknown_fields);
329 }
330 debug_struct.finish()
331 }
332}
333
334impl std::fmt::Debug for super::ReportResponse {
335 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
336 let mut debug_struct = f.debug_struct("ReportResponse");
337 debug_struct.field("report_errors", &self.report_errors);
338 debug_struct.field("service_config_id", &self.service_config_id);
339 debug_struct.field("service_rollout_id", &self.service_rollout_id);
340 if !self._unknown_fields.is_empty() {
341 debug_struct.field("_unknown_fields", &self._unknown_fields);
342 }
343 debug_struct.finish()
344 }
345}
346
347impl std::fmt::Debug for super::report_response::ReportError {
348 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
349 let mut debug_struct = f.debug_struct("ReportError");
350 debug_struct.field("operation_id", &self.operation_id);
351 debug_struct.field("status", &self.status);
352 if !self._unknown_fields.is_empty() {
353 debug_struct.field("_unknown_fields", &self._unknown_fields);
354 }
355 debug_struct.finish()
356 }
357}