google_cloud_redis_v1/model/
debug.rs1#[allow(unused_imports)]
18use super::*;
19
20impl std::fmt::Debug for super::NodeInfo {
21 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
22 let mut debug_struct = f.debug_struct("NodeInfo");
23 debug_struct.field("id", &self.id);
24 debug_struct.field("zone", &self.zone);
25 if !self._unknown_fields.is_empty() {
26 debug_struct.field("_unknown_fields", &self._unknown_fields);
27 }
28 debug_struct.finish()
29 }
30}
31
32impl std::fmt::Debug for super::Instance {
33 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
34 let mut debug_struct = f.debug_struct("Instance");
35 debug_struct.field("name", &self.name);
36 debug_struct.field("display_name", &self.display_name);
37 debug_struct.field("labels", &self.labels);
38 debug_struct.field("location_id", &self.location_id);
39 debug_struct.field("alternative_location_id", &self.alternative_location_id);
40 debug_struct.field("redis_version", &self.redis_version);
41 debug_struct.field("reserved_ip_range", &self.reserved_ip_range);
42 debug_struct.field("secondary_ip_range", &self.secondary_ip_range);
43 debug_struct.field("host", &self.host);
44 debug_struct.field("port", &self.port);
45 debug_struct.field("current_location_id", &self.current_location_id);
46 debug_struct.field("create_time", &self.create_time);
47 debug_struct.field("state", &self.state);
48 debug_struct.field("status_message", &self.status_message);
49 debug_struct.field("redis_configs", &self.redis_configs);
50 debug_struct.field("tier", &self.tier);
51 debug_struct.field("memory_size_gb", &self.memory_size_gb);
52 debug_struct.field("authorized_network", &self.authorized_network);
53 debug_struct.field("persistence_iam_identity", &self.persistence_iam_identity);
54 debug_struct.field("connect_mode", &self.connect_mode);
55 debug_struct.field("auth_enabled", &self.auth_enabled);
56 debug_struct.field("server_ca_certs", &self.server_ca_certs);
57 debug_struct.field("transit_encryption_mode", &self.transit_encryption_mode);
58 debug_struct.field("maintenance_policy", &self.maintenance_policy);
59 debug_struct.field("maintenance_schedule", &self.maintenance_schedule);
60 debug_struct.field("replica_count", &self.replica_count);
61 debug_struct.field("nodes", &self.nodes);
62 debug_struct.field("read_endpoint", &self.read_endpoint);
63 debug_struct.field("read_endpoint_port", &self.read_endpoint_port);
64 debug_struct.field("read_replicas_mode", &self.read_replicas_mode);
65 debug_struct.field("customer_managed_key", &self.customer_managed_key);
66 debug_struct.field("persistence_config", &self.persistence_config);
67 debug_struct.field("suspension_reasons", &self.suspension_reasons);
68 debug_struct.field("maintenance_version", &self.maintenance_version);
69 debug_struct.field(
70 "available_maintenance_versions",
71 &self.available_maintenance_versions,
72 );
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::PersistenceConfig {
81 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
82 let mut debug_struct = f.debug_struct("PersistenceConfig");
83 debug_struct.field("persistence_mode", &self.persistence_mode);
84 debug_struct.field("rdb_snapshot_period", &self.rdb_snapshot_period);
85 debug_struct.field("rdb_next_snapshot_time", &self.rdb_next_snapshot_time);
86 debug_struct.field("rdb_snapshot_start_time", &self.rdb_snapshot_start_time);
87 if !self._unknown_fields.is_empty() {
88 debug_struct.field("_unknown_fields", &self._unknown_fields);
89 }
90 debug_struct.finish()
91 }
92}
93
94impl std::fmt::Debug for super::RescheduleMaintenanceRequest {
95 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
96 let mut debug_struct = f.debug_struct("RescheduleMaintenanceRequest");
97 debug_struct.field("name", &self.name);
98 debug_struct.field("reschedule_type", &self.reschedule_type);
99 debug_struct.field("schedule_time", &self.schedule_time);
100 if !self._unknown_fields.is_empty() {
101 debug_struct.field("_unknown_fields", &self._unknown_fields);
102 }
103 debug_struct.finish()
104 }
105}
106
107impl std::fmt::Debug for super::MaintenancePolicy {
108 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
109 let mut debug_struct = f.debug_struct("MaintenancePolicy");
110 debug_struct.field("create_time", &self.create_time);
111 debug_struct.field("update_time", &self.update_time);
112 debug_struct.field("description", &self.description);
113 debug_struct.field("weekly_maintenance_window", &self.weekly_maintenance_window);
114 if !self._unknown_fields.is_empty() {
115 debug_struct.field("_unknown_fields", &self._unknown_fields);
116 }
117 debug_struct.finish()
118 }
119}
120
121impl std::fmt::Debug for super::WeeklyMaintenanceWindow {
122 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
123 let mut debug_struct = f.debug_struct("WeeklyMaintenanceWindow");
124 debug_struct.field("day", &self.day);
125 debug_struct.field("start_time", &self.start_time);
126 debug_struct.field("duration", &self.duration);
127 if !self._unknown_fields.is_empty() {
128 debug_struct.field("_unknown_fields", &self._unknown_fields);
129 }
130 debug_struct.finish()
131 }
132}
133
134impl std::fmt::Debug for super::MaintenanceSchedule {
135 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
136 let mut debug_struct = f.debug_struct("MaintenanceSchedule");
137 debug_struct.field("start_time", &self.start_time);
138 debug_struct.field("end_time", &self.end_time);
139 debug_struct.field("can_reschedule", &self.can_reschedule);
140 debug_struct.field("schedule_deadline_time", &self.schedule_deadline_time);
141 if !self._unknown_fields.is_empty() {
142 debug_struct.field("_unknown_fields", &self._unknown_fields);
143 }
144 debug_struct.finish()
145 }
146}
147
148impl std::fmt::Debug for super::ListInstancesRequest {
149 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
150 let mut debug_struct = f.debug_struct("ListInstancesRequest");
151 debug_struct.field("parent", &self.parent);
152 debug_struct.field("page_size", &self.page_size);
153 debug_struct.field("page_token", &self.page_token);
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::ListInstancesResponse {
162 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
163 let mut debug_struct = f.debug_struct("ListInstancesResponse");
164 debug_struct.field("instances", &self.instances);
165 debug_struct.field("next_page_token", &self.next_page_token);
166 debug_struct.field("unreachable", &self.unreachable);
167 if !self._unknown_fields.is_empty() {
168 debug_struct.field("_unknown_fields", &self._unknown_fields);
169 }
170 debug_struct.finish()
171 }
172}
173
174impl std::fmt::Debug for super::GetInstanceRequest {
175 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
176 let mut debug_struct = f.debug_struct("GetInstanceRequest");
177 debug_struct.field("name", &self.name);
178 if !self._unknown_fields.is_empty() {
179 debug_struct.field("_unknown_fields", &self._unknown_fields);
180 }
181 debug_struct.finish()
182 }
183}
184
185impl std::fmt::Debug for super::GetInstanceAuthStringRequest {
186 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
187 let mut debug_struct = f.debug_struct("GetInstanceAuthStringRequest");
188 debug_struct.field("name", &self.name);
189 if !self._unknown_fields.is_empty() {
190 debug_struct.field("_unknown_fields", &self._unknown_fields);
191 }
192 debug_struct.finish()
193 }
194}
195
196impl std::fmt::Debug for super::InstanceAuthString {
197 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
198 let mut debug_struct = f.debug_struct("InstanceAuthString");
199 debug_struct.field("auth_string", &self.auth_string);
200 if !self._unknown_fields.is_empty() {
201 debug_struct.field("_unknown_fields", &self._unknown_fields);
202 }
203 debug_struct.finish()
204 }
205}
206
207impl std::fmt::Debug for super::CreateInstanceRequest {
208 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
209 let mut debug_struct = f.debug_struct("CreateInstanceRequest");
210 debug_struct.field("parent", &self.parent);
211 debug_struct.field("instance_id", &self.instance_id);
212 debug_struct.field("instance", &self.instance);
213 if !self._unknown_fields.is_empty() {
214 debug_struct.field("_unknown_fields", &self._unknown_fields);
215 }
216 debug_struct.finish()
217 }
218}
219
220impl std::fmt::Debug for super::UpdateInstanceRequest {
221 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
222 let mut debug_struct = f.debug_struct("UpdateInstanceRequest");
223 debug_struct.field("update_mask", &self.update_mask);
224 debug_struct.field("instance", &self.instance);
225 if !self._unknown_fields.is_empty() {
226 debug_struct.field("_unknown_fields", &self._unknown_fields);
227 }
228 debug_struct.finish()
229 }
230}
231
232impl std::fmt::Debug for super::UpgradeInstanceRequest {
233 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
234 let mut debug_struct = f.debug_struct("UpgradeInstanceRequest");
235 debug_struct.field("name", &self.name);
236 debug_struct.field("redis_version", &self.redis_version);
237 if !self._unknown_fields.is_empty() {
238 debug_struct.field("_unknown_fields", &self._unknown_fields);
239 }
240 debug_struct.finish()
241 }
242}
243
244impl std::fmt::Debug for super::DeleteInstanceRequest {
245 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
246 let mut debug_struct = f.debug_struct("DeleteInstanceRequest");
247 debug_struct.field("name", &self.name);
248 if !self._unknown_fields.is_empty() {
249 debug_struct.field("_unknown_fields", &self._unknown_fields);
250 }
251 debug_struct.finish()
252 }
253}
254
255impl std::fmt::Debug for super::GcsSource {
256 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
257 let mut debug_struct = f.debug_struct("GcsSource");
258 debug_struct.field("uri", &self.uri);
259 if !self._unknown_fields.is_empty() {
260 debug_struct.field("_unknown_fields", &self._unknown_fields);
261 }
262 debug_struct.finish()
263 }
264}
265
266impl std::fmt::Debug for super::InputConfig {
267 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
268 let mut debug_struct = f.debug_struct("InputConfig");
269 debug_struct.field("source", &self.source);
270 if !self._unknown_fields.is_empty() {
271 debug_struct.field("_unknown_fields", &self._unknown_fields);
272 }
273 debug_struct.finish()
274 }
275}
276
277impl std::fmt::Debug for super::ImportInstanceRequest {
278 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
279 let mut debug_struct = f.debug_struct("ImportInstanceRequest");
280 debug_struct.field("name", &self.name);
281 debug_struct.field("input_config", &self.input_config);
282 if !self._unknown_fields.is_empty() {
283 debug_struct.field("_unknown_fields", &self._unknown_fields);
284 }
285 debug_struct.finish()
286 }
287}
288
289impl std::fmt::Debug for super::GcsDestination {
290 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
291 let mut debug_struct = f.debug_struct("GcsDestination");
292 debug_struct.field("uri", &self.uri);
293 if !self._unknown_fields.is_empty() {
294 debug_struct.field("_unknown_fields", &self._unknown_fields);
295 }
296 debug_struct.finish()
297 }
298}
299
300impl std::fmt::Debug for super::OutputConfig {
301 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
302 let mut debug_struct = f.debug_struct("OutputConfig");
303 debug_struct.field("destination", &self.destination);
304 if !self._unknown_fields.is_empty() {
305 debug_struct.field("_unknown_fields", &self._unknown_fields);
306 }
307 debug_struct.finish()
308 }
309}
310
311impl std::fmt::Debug for super::ExportInstanceRequest {
312 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
313 let mut debug_struct = f.debug_struct("ExportInstanceRequest");
314 debug_struct.field("name", &self.name);
315 debug_struct.field("output_config", &self.output_config);
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::FailoverInstanceRequest {
324 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
325 let mut debug_struct = f.debug_struct("FailoverInstanceRequest");
326 debug_struct.field("name", &self.name);
327 debug_struct.field("data_protection_mode", &self.data_protection_mode);
328 if !self._unknown_fields.is_empty() {
329 debug_struct.field("_unknown_fields", &self._unknown_fields);
330 }
331 debug_struct.finish()
332 }
333}
334
335impl std::fmt::Debug for super::OperationMetadata {
336 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
337 let mut debug_struct = f.debug_struct("OperationMetadata");
338 debug_struct.field("create_time", &self.create_time);
339 debug_struct.field("end_time", &self.end_time);
340 debug_struct.field("target", &self.target);
341 debug_struct.field("verb", &self.verb);
342 debug_struct.field("status_detail", &self.status_detail);
343 debug_struct.field("cancel_requested", &self.cancel_requested);
344 debug_struct.field("api_version", &self.api_version);
345 if !self._unknown_fields.is_empty() {
346 debug_struct.field("_unknown_fields", &self._unknown_fields);
347 }
348 debug_struct.finish()
349 }
350}
351
352impl std::fmt::Debug for super::LocationMetadata {
353 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
354 let mut debug_struct = f.debug_struct("LocationMetadata");
355 debug_struct.field("available_zones", &self.available_zones);
356 if !self._unknown_fields.is_empty() {
357 debug_struct.field("_unknown_fields", &self._unknown_fields);
358 }
359 debug_struct.finish()
360 }
361}
362
363impl std::fmt::Debug for super::ZoneMetadata {
364 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
365 let mut debug_struct = f.debug_struct("ZoneMetadata");
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::TlsCertificate {
374 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
375 let mut debug_struct = f.debug_struct("TlsCertificate");
376 debug_struct.field("serial_number", &self.serial_number);
377 debug_struct.field("cert", &self.cert);
378 debug_struct.field("create_time", &self.create_time);
379 debug_struct.field("expire_time", &self.expire_time);
380 debug_struct.field("sha1_fingerprint", &self.sha1_fingerprint);
381 if !self._unknown_fields.is_empty() {
382 debug_struct.field("_unknown_fields", &self._unknown_fields);
383 }
384 debug_struct.finish()
385 }
386}