google_cloud_secretmanager_v1/model/
debug.rs1#[allow(unused_imports)]
18use super::*;
19
20impl std::fmt::Debug for super::Secret {
21 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
22 let mut debug_struct = f.debug_struct("Secret");
23 debug_struct.field("name", &self.name);
24 debug_struct.field("replication", &self.replication);
25 debug_struct.field("create_time", &self.create_time);
26 debug_struct.field("labels", &self.labels);
27 debug_struct.field("topics", &self.topics);
28 debug_struct.field("etag", &self.etag);
29 debug_struct.field("rotation", &self.rotation);
30 debug_struct.field("version_aliases", &self.version_aliases);
31 debug_struct.field("annotations", &self.annotations);
32 debug_struct.field("version_destroy_ttl", &self.version_destroy_ttl);
33 debug_struct.field(
34 "customer_managed_encryption",
35 &self.customer_managed_encryption,
36 );
37 debug_struct.field("tags", &self.tags);
38 debug_struct.field("expiration", &self.expiration);
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::SecretVersion {
47 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
48 let mut debug_struct = f.debug_struct("SecretVersion");
49 debug_struct.field("name", &self.name);
50 debug_struct.field("create_time", &self.create_time);
51 debug_struct.field("destroy_time", &self.destroy_time);
52 debug_struct.field("state", &self.state);
53 debug_struct.field("replication_status", &self.replication_status);
54 debug_struct.field("etag", &self.etag);
55 debug_struct.field(
56 "client_specified_payload_checksum",
57 &self.client_specified_payload_checksum,
58 );
59 debug_struct.field("scheduled_destroy_time", &self.scheduled_destroy_time);
60 debug_struct.field(
61 "customer_managed_encryption",
62 &self.customer_managed_encryption,
63 );
64 if !self._unknown_fields.is_empty() {
65 debug_struct.field("_unknown_fields", &self._unknown_fields);
66 }
67 debug_struct.finish()
68 }
69}
70
71impl std::fmt::Debug for super::Replication {
72 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
73 let mut debug_struct = f.debug_struct("Replication");
74 debug_struct.field("replication", &self.replication);
75 if !self._unknown_fields.is_empty() {
76 debug_struct.field("_unknown_fields", &self._unknown_fields);
77 }
78 debug_struct.finish()
79 }
80}
81
82impl std::fmt::Debug for super::replication::Automatic {
83 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
84 let mut debug_struct = f.debug_struct("Automatic");
85 debug_struct.field(
86 "customer_managed_encryption",
87 &self.customer_managed_encryption,
88 );
89 if !self._unknown_fields.is_empty() {
90 debug_struct.field("_unknown_fields", &self._unknown_fields);
91 }
92 debug_struct.finish()
93 }
94}
95
96impl std::fmt::Debug for super::replication::UserManaged {
97 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
98 let mut debug_struct = f.debug_struct("UserManaged");
99 debug_struct.field("replicas", &self.replicas);
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::replication::user_managed::Replica {
108 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
109 let mut debug_struct = f.debug_struct("Replica");
110 debug_struct.field("location", &self.location);
111 debug_struct.field(
112 "customer_managed_encryption",
113 &self.customer_managed_encryption,
114 );
115 if !self._unknown_fields.is_empty() {
116 debug_struct.field("_unknown_fields", &self._unknown_fields);
117 }
118 debug_struct.finish()
119 }
120}
121
122impl std::fmt::Debug for super::CustomerManagedEncryption {
123 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
124 let mut debug_struct = f.debug_struct("CustomerManagedEncryption");
125 debug_struct.field("kms_key_name", &self.kms_key_name);
126 if !self._unknown_fields.is_empty() {
127 debug_struct.field("_unknown_fields", &self._unknown_fields);
128 }
129 debug_struct.finish()
130 }
131}
132
133impl std::fmt::Debug for super::ReplicationStatus {
134 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
135 let mut debug_struct = f.debug_struct("ReplicationStatus");
136 debug_struct.field("replication_status", &self.replication_status);
137 if !self._unknown_fields.is_empty() {
138 debug_struct.field("_unknown_fields", &self._unknown_fields);
139 }
140 debug_struct.finish()
141 }
142}
143
144impl std::fmt::Debug for super::replication_status::AutomaticStatus {
145 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
146 let mut debug_struct = f.debug_struct("AutomaticStatus");
147 debug_struct.field(
148 "customer_managed_encryption",
149 &self.customer_managed_encryption,
150 );
151 if !self._unknown_fields.is_empty() {
152 debug_struct.field("_unknown_fields", &self._unknown_fields);
153 }
154 debug_struct.finish()
155 }
156}
157
158impl std::fmt::Debug for super::replication_status::UserManagedStatus {
159 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
160 let mut debug_struct = f.debug_struct("UserManagedStatus");
161 debug_struct.field("replicas", &self.replicas);
162 if !self._unknown_fields.is_empty() {
163 debug_struct.field("_unknown_fields", &self._unknown_fields);
164 }
165 debug_struct.finish()
166 }
167}
168
169impl std::fmt::Debug for super::replication_status::user_managed_status::ReplicaStatus {
170 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
171 let mut debug_struct = f.debug_struct("ReplicaStatus");
172 debug_struct.field("location", &self.location);
173 debug_struct.field(
174 "customer_managed_encryption",
175 &self.customer_managed_encryption,
176 );
177 if !self._unknown_fields.is_empty() {
178 debug_struct.field("_unknown_fields", &self._unknown_fields);
179 }
180 debug_struct.finish()
181 }
182}
183
184impl std::fmt::Debug for super::CustomerManagedEncryptionStatus {
185 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
186 let mut debug_struct = f.debug_struct("CustomerManagedEncryptionStatus");
187 debug_struct.field("kms_key_version_name", &self.kms_key_version_name);
188 if !self._unknown_fields.is_empty() {
189 debug_struct.field("_unknown_fields", &self._unknown_fields);
190 }
191 debug_struct.finish()
192 }
193}
194
195impl std::fmt::Debug for super::Topic {
196 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
197 let mut debug_struct = f.debug_struct("Topic");
198 debug_struct.field("name", &self.name);
199 if !self._unknown_fields.is_empty() {
200 debug_struct.field("_unknown_fields", &self._unknown_fields);
201 }
202 debug_struct.finish()
203 }
204}
205
206impl std::fmt::Debug for super::Rotation {
207 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
208 let mut debug_struct = f.debug_struct("Rotation");
209 debug_struct.field("next_rotation_time", &self.next_rotation_time);
210 debug_struct.field("rotation_period", &self.rotation_period);
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::SecretPayload {
219 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
220 let mut debug_struct = f.debug_struct("SecretPayload");
221 debug_struct.field("data", &self.data);
222 debug_struct.field("data_crc32c", &self.data_crc32c);
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::ListSecretsRequest {
231 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
232 let mut debug_struct = f.debug_struct("ListSecretsRequest");
233 debug_struct.field("parent", &self.parent);
234 debug_struct.field("page_size", &self.page_size);
235 debug_struct.field("page_token", &self.page_token);
236 debug_struct.field("filter", &self.filter);
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::ListSecretsResponse {
245 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
246 let mut debug_struct = f.debug_struct("ListSecretsResponse");
247 debug_struct.field("secrets", &self.secrets);
248 debug_struct.field("next_page_token", &self.next_page_token);
249 debug_struct.field("total_size", &self.total_size);
250 if !self._unknown_fields.is_empty() {
251 debug_struct.field("_unknown_fields", &self._unknown_fields);
252 }
253 debug_struct.finish()
254 }
255}
256
257impl std::fmt::Debug for super::CreateSecretRequest {
258 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
259 let mut debug_struct = f.debug_struct("CreateSecretRequest");
260 debug_struct.field("parent", &self.parent);
261 debug_struct.field("secret_id", &self.secret_id);
262 debug_struct.field("secret", &self.secret);
263 if !self._unknown_fields.is_empty() {
264 debug_struct.field("_unknown_fields", &self._unknown_fields);
265 }
266 debug_struct.finish()
267 }
268}
269
270impl std::fmt::Debug for super::AddSecretVersionRequest {
271 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
272 let mut debug_struct = f.debug_struct("AddSecretVersionRequest");
273 debug_struct.field("parent", &self.parent);
274 debug_struct.field("payload", &self.payload);
275 if !self._unknown_fields.is_empty() {
276 debug_struct.field("_unknown_fields", &self._unknown_fields);
277 }
278 debug_struct.finish()
279 }
280}
281
282impl std::fmt::Debug for super::GetSecretRequest {
283 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
284 let mut debug_struct = f.debug_struct("GetSecretRequest");
285 debug_struct.field("name", &self.name);
286 if !self._unknown_fields.is_empty() {
287 debug_struct.field("_unknown_fields", &self._unknown_fields);
288 }
289 debug_struct.finish()
290 }
291}
292
293impl std::fmt::Debug for super::ListSecretVersionsRequest {
294 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
295 let mut debug_struct = f.debug_struct("ListSecretVersionsRequest");
296 debug_struct.field("parent", &self.parent);
297 debug_struct.field("page_size", &self.page_size);
298 debug_struct.field("page_token", &self.page_token);
299 debug_struct.field("filter", &self.filter);
300 if !self._unknown_fields.is_empty() {
301 debug_struct.field("_unknown_fields", &self._unknown_fields);
302 }
303 debug_struct.finish()
304 }
305}
306
307impl std::fmt::Debug for super::ListSecretVersionsResponse {
308 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
309 let mut debug_struct = f.debug_struct("ListSecretVersionsResponse");
310 debug_struct.field("versions", &self.versions);
311 debug_struct.field("next_page_token", &self.next_page_token);
312 debug_struct.field("total_size", &self.total_size);
313 if !self._unknown_fields.is_empty() {
314 debug_struct.field("_unknown_fields", &self._unknown_fields);
315 }
316 debug_struct.finish()
317 }
318}
319
320impl std::fmt::Debug for super::GetSecretVersionRequest {
321 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
322 let mut debug_struct = f.debug_struct("GetSecretVersionRequest");
323 debug_struct.field("name", &self.name);
324 if !self._unknown_fields.is_empty() {
325 debug_struct.field("_unknown_fields", &self._unknown_fields);
326 }
327 debug_struct.finish()
328 }
329}
330
331impl std::fmt::Debug for super::UpdateSecretRequest {
332 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
333 let mut debug_struct = f.debug_struct("UpdateSecretRequest");
334 debug_struct.field("secret", &self.secret);
335 debug_struct.field("update_mask", &self.update_mask);
336 if !self._unknown_fields.is_empty() {
337 debug_struct.field("_unknown_fields", &self._unknown_fields);
338 }
339 debug_struct.finish()
340 }
341}
342
343impl std::fmt::Debug for super::AccessSecretVersionRequest {
344 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
345 let mut debug_struct = f.debug_struct("AccessSecretVersionRequest");
346 debug_struct.field("name", &self.name);
347 if !self._unknown_fields.is_empty() {
348 debug_struct.field("_unknown_fields", &self._unknown_fields);
349 }
350 debug_struct.finish()
351 }
352}
353
354impl std::fmt::Debug for super::AccessSecretVersionResponse {
355 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
356 let mut debug_struct = f.debug_struct("AccessSecretVersionResponse");
357 debug_struct.field("name", &self.name);
358 debug_struct.field("payload", &self.payload);
359 if !self._unknown_fields.is_empty() {
360 debug_struct.field("_unknown_fields", &self._unknown_fields);
361 }
362 debug_struct.finish()
363 }
364}
365
366impl std::fmt::Debug for super::DeleteSecretRequest {
367 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
368 let mut debug_struct = f.debug_struct("DeleteSecretRequest");
369 debug_struct.field("name", &self.name);
370 debug_struct.field("etag", &self.etag);
371 if !self._unknown_fields.is_empty() {
372 debug_struct.field("_unknown_fields", &self._unknown_fields);
373 }
374 debug_struct.finish()
375 }
376}
377
378impl std::fmt::Debug for super::DisableSecretVersionRequest {
379 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
380 let mut debug_struct = f.debug_struct("DisableSecretVersionRequest");
381 debug_struct.field("name", &self.name);
382 debug_struct.field("etag", &self.etag);
383 if !self._unknown_fields.is_empty() {
384 debug_struct.field("_unknown_fields", &self._unknown_fields);
385 }
386 debug_struct.finish()
387 }
388}
389
390impl std::fmt::Debug for super::EnableSecretVersionRequest {
391 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
392 let mut debug_struct = f.debug_struct("EnableSecretVersionRequest");
393 debug_struct.field("name", &self.name);
394 debug_struct.field("etag", &self.etag);
395 if !self._unknown_fields.is_empty() {
396 debug_struct.field("_unknown_fields", &self._unknown_fields);
397 }
398 debug_struct.finish()
399 }
400}
401
402impl std::fmt::Debug for super::DestroySecretVersionRequest {
403 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
404 let mut debug_struct = f.debug_struct("DestroySecretVersionRequest");
405 debug_struct.field("name", &self.name);
406 debug_struct.field("etag", &self.etag);
407 if !self._unknown_fields.is_empty() {
408 debug_struct.field("_unknown_fields", &self._unknown_fields);
409 }
410 debug_struct.finish()
411 }
412}