Skip to main content

google_cloud_domains_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::Registration {
21    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
22        let mut debug_struct = f.debug_struct("Registration");
23        debug_struct.field("name", &self.name);
24        debug_struct.field("domain_name", &self.domain_name);
25        debug_struct.field("create_time", &self.create_time);
26        debug_struct.field("expire_time", &self.expire_time);
27        debug_struct.field("state", &self.state);
28        debug_struct.field("issues", &self.issues);
29        debug_struct.field("labels", &self.labels);
30        debug_struct.field("management_settings", &self.management_settings);
31        debug_struct.field("dns_settings", &self.dns_settings);
32        debug_struct.field("contact_settings", &self.contact_settings);
33        debug_struct.field("pending_contact_settings", &self.pending_contact_settings);
34        debug_struct.field("supported_privacy", &self.supported_privacy);
35        if !self._unknown_fields.is_empty() {
36            debug_struct.field("_unknown_fields", &self._unknown_fields);
37        }
38        debug_struct.finish()
39    }
40}
41
42impl std::fmt::Debug for super::ManagementSettings {
43    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
44        let mut debug_struct = f.debug_struct("ManagementSettings");
45        debug_struct.field("renewal_method", &self.renewal_method);
46        debug_struct.field("transfer_lock_state", &self.transfer_lock_state);
47        if !self._unknown_fields.is_empty() {
48            debug_struct.field("_unknown_fields", &self._unknown_fields);
49        }
50        debug_struct.finish()
51    }
52}
53
54impl std::fmt::Debug for super::DnsSettings {
55    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
56        let mut debug_struct = f.debug_struct("DnsSettings");
57        debug_struct.field("glue_records", &self.glue_records);
58        debug_struct.field("dns_provider", &self.dns_provider);
59        if !self._unknown_fields.is_empty() {
60            debug_struct.field("_unknown_fields", &self._unknown_fields);
61        }
62        debug_struct.finish()
63    }
64}
65
66impl std::fmt::Debug for super::dns_settings::CustomDns {
67    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
68        let mut debug_struct = f.debug_struct("CustomDns");
69        debug_struct.field("name_servers", &self.name_servers);
70        debug_struct.field("ds_records", &self.ds_records);
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::dns_settings::GoogleDomainsDns {
79    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
80        let mut debug_struct = f.debug_struct("GoogleDomainsDns");
81        debug_struct.field("name_servers", &self.name_servers);
82        debug_struct.field("ds_state", &self.ds_state);
83        debug_struct.field("ds_records", &self.ds_records);
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::dns_settings::DsRecord {
92    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
93        let mut debug_struct = f.debug_struct("DsRecord");
94        debug_struct.field("key_tag", &self.key_tag);
95        debug_struct.field("algorithm", &self.algorithm);
96        debug_struct.field("digest_type", &self.digest_type);
97        debug_struct.field("digest", &self.digest);
98        if !self._unknown_fields.is_empty() {
99            debug_struct.field("_unknown_fields", &self._unknown_fields);
100        }
101        debug_struct.finish()
102    }
103}
104
105impl std::fmt::Debug for super::dns_settings::GlueRecord {
106    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
107        let mut debug_struct = f.debug_struct("GlueRecord");
108        debug_struct.field("host_name", &self.host_name);
109        debug_struct.field("ipv4_addresses", &self.ipv4_addresses);
110        debug_struct.field("ipv6_addresses", &self.ipv6_addresses);
111        if !self._unknown_fields.is_empty() {
112            debug_struct.field("_unknown_fields", &self._unknown_fields);
113        }
114        debug_struct.finish()
115    }
116}
117
118impl std::fmt::Debug for super::ContactSettings {
119    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
120        let mut debug_struct = f.debug_struct("ContactSettings");
121        debug_struct.field("privacy", &self.privacy);
122        debug_struct.field("registrant_contact", &self.registrant_contact);
123        debug_struct.field("admin_contact", &self.admin_contact);
124        debug_struct.field("technical_contact", &self.technical_contact);
125        if !self._unknown_fields.is_empty() {
126            debug_struct.field("_unknown_fields", &self._unknown_fields);
127        }
128        debug_struct.finish()
129    }
130}
131
132impl std::fmt::Debug for super::contact_settings::Contact {
133    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
134        let mut debug_struct = f.debug_struct("Contact");
135        debug_struct.field("postal_address", &self.postal_address);
136        debug_struct.field("email", &self.email);
137        debug_struct.field("phone_number", &self.phone_number);
138        debug_struct.field("fax_number", &self.fax_number);
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::SearchDomainsRequest {
147    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
148        let mut debug_struct = f.debug_struct("SearchDomainsRequest");
149        debug_struct.field("query", &self.query);
150        debug_struct.field("location", &self.location);
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::SearchDomainsResponse {
159    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
160        let mut debug_struct = f.debug_struct("SearchDomainsResponse");
161        debug_struct.field("register_parameters", &self.register_parameters);
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::RetrieveRegisterParametersRequest {
170    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
171        let mut debug_struct = f.debug_struct("RetrieveRegisterParametersRequest");
172        debug_struct.field("domain_name", &self.domain_name);
173        debug_struct.field("location", &self.location);
174        if !self._unknown_fields.is_empty() {
175            debug_struct.field("_unknown_fields", &self._unknown_fields);
176        }
177        debug_struct.finish()
178    }
179}
180
181impl std::fmt::Debug for super::RetrieveRegisterParametersResponse {
182    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
183        let mut debug_struct = f.debug_struct("RetrieveRegisterParametersResponse");
184        debug_struct.field("register_parameters", &self.register_parameters);
185        if !self._unknown_fields.is_empty() {
186            debug_struct.field("_unknown_fields", &self._unknown_fields);
187        }
188        debug_struct.finish()
189    }
190}
191
192impl std::fmt::Debug for super::RegisterDomainRequest {
193    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
194        let mut debug_struct = f.debug_struct("RegisterDomainRequest");
195        debug_struct.field("parent", &self.parent);
196        debug_struct.field("registration", &self.registration);
197        debug_struct.field("domain_notices", &self.domain_notices);
198        debug_struct.field("contact_notices", &self.contact_notices);
199        debug_struct.field("yearly_price", &self.yearly_price);
200        debug_struct.field("validate_only", &self.validate_only);
201        if !self._unknown_fields.is_empty() {
202            debug_struct.field("_unknown_fields", &self._unknown_fields);
203        }
204        debug_struct.finish()
205    }
206}
207
208impl std::fmt::Debug for super::RetrieveTransferParametersRequest {
209    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
210        let mut debug_struct = f.debug_struct("RetrieveTransferParametersRequest");
211        debug_struct.field("domain_name", &self.domain_name);
212        debug_struct.field("location", &self.location);
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::RetrieveTransferParametersResponse {
221    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
222        let mut debug_struct = f.debug_struct("RetrieveTransferParametersResponse");
223        debug_struct.field("transfer_parameters", &self.transfer_parameters);
224        if !self._unknown_fields.is_empty() {
225            debug_struct.field("_unknown_fields", &self._unknown_fields);
226        }
227        debug_struct.finish()
228    }
229}
230
231impl std::fmt::Debug for super::TransferDomainRequest {
232    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
233        let mut debug_struct = f.debug_struct("TransferDomainRequest");
234        debug_struct.field("parent", &self.parent);
235        debug_struct.field("registration", &self.registration);
236        debug_struct.field("contact_notices", &self.contact_notices);
237        debug_struct.field("yearly_price", &self.yearly_price);
238        debug_struct.field("authorization_code", &self.authorization_code);
239        debug_struct.field("validate_only", &self.validate_only);
240        if !self._unknown_fields.is_empty() {
241            debug_struct.field("_unknown_fields", &self._unknown_fields);
242        }
243        debug_struct.finish()
244    }
245}
246
247impl std::fmt::Debug for super::ListRegistrationsRequest {
248    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
249        let mut debug_struct = f.debug_struct("ListRegistrationsRequest");
250        debug_struct.field("parent", &self.parent);
251        debug_struct.field("page_size", &self.page_size);
252        debug_struct.field("page_token", &self.page_token);
253        debug_struct.field("filter", &self.filter);
254        if !self._unknown_fields.is_empty() {
255            debug_struct.field("_unknown_fields", &self._unknown_fields);
256        }
257        debug_struct.finish()
258    }
259}
260
261impl std::fmt::Debug for super::ListRegistrationsResponse {
262    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
263        let mut debug_struct = f.debug_struct("ListRegistrationsResponse");
264        debug_struct.field("registrations", &self.registrations);
265        debug_struct.field("next_page_token", &self.next_page_token);
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::GetRegistrationRequest {
274    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
275        let mut debug_struct = f.debug_struct("GetRegistrationRequest");
276        debug_struct.field("name", &self.name);
277        if !self._unknown_fields.is_empty() {
278            debug_struct.field("_unknown_fields", &self._unknown_fields);
279        }
280        debug_struct.finish()
281    }
282}
283
284impl std::fmt::Debug for super::UpdateRegistrationRequest {
285    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
286        let mut debug_struct = f.debug_struct("UpdateRegistrationRequest");
287        debug_struct.field("registration", &self.registration);
288        debug_struct.field("update_mask", &self.update_mask);
289        if !self._unknown_fields.is_empty() {
290            debug_struct.field("_unknown_fields", &self._unknown_fields);
291        }
292        debug_struct.finish()
293    }
294}
295
296impl std::fmt::Debug for super::ConfigureManagementSettingsRequest {
297    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
298        let mut debug_struct = f.debug_struct("ConfigureManagementSettingsRequest");
299        debug_struct.field("registration", &self.registration);
300        debug_struct.field("management_settings", &self.management_settings);
301        debug_struct.field("update_mask", &self.update_mask);
302        if !self._unknown_fields.is_empty() {
303            debug_struct.field("_unknown_fields", &self._unknown_fields);
304        }
305        debug_struct.finish()
306    }
307}
308
309impl std::fmt::Debug for super::ConfigureDnsSettingsRequest {
310    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
311        let mut debug_struct = f.debug_struct("ConfigureDnsSettingsRequest");
312        debug_struct.field("registration", &self.registration);
313        debug_struct.field("dns_settings", &self.dns_settings);
314        debug_struct.field("update_mask", &self.update_mask);
315        debug_struct.field("validate_only", &self.validate_only);
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::ConfigureContactSettingsRequest {
324    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
325        let mut debug_struct = f.debug_struct("ConfigureContactSettingsRequest");
326        debug_struct.field("registration", &self.registration);
327        debug_struct.field("contact_settings", &self.contact_settings);
328        debug_struct.field("update_mask", &self.update_mask);
329        debug_struct.field("contact_notices", &self.contact_notices);
330        debug_struct.field("validate_only", &self.validate_only);
331        if !self._unknown_fields.is_empty() {
332            debug_struct.field("_unknown_fields", &self._unknown_fields);
333        }
334        debug_struct.finish()
335    }
336}
337
338impl std::fmt::Debug for super::ExportRegistrationRequest {
339    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
340        let mut debug_struct = f.debug_struct("ExportRegistrationRequest");
341        debug_struct.field("name", &self.name);
342        if !self._unknown_fields.is_empty() {
343            debug_struct.field("_unknown_fields", &self._unknown_fields);
344        }
345        debug_struct.finish()
346    }
347}
348
349impl std::fmt::Debug for super::DeleteRegistrationRequest {
350    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
351        let mut debug_struct = f.debug_struct("DeleteRegistrationRequest");
352        debug_struct.field("name", &self.name);
353        if !self._unknown_fields.is_empty() {
354            debug_struct.field("_unknown_fields", &self._unknown_fields);
355        }
356        debug_struct.finish()
357    }
358}
359
360impl std::fmt::Debug for super::RetrieveAuthorizationCodeRequest {
361    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
362        let mut debug_struct = f.debug_struct("RetrieveAuthorizationCodeRequest");
363        debug_struct.field("registration", &self.registration);
364        if !self._unknown_fields.is_empty() {
365            debug_struct.field("_unknown_fields", &self._unknown_fields);
366        }
367        debug_struct.finish()
368    }
369}
370
371impl std::fmt::Debug for super::ResetAuthorizationCodeRequest {
372    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
373        let mut debug_struct = f.debug_struct("ResetAuthorizationCodeRequest");
374        debug_struct.field("registration", &self.registration);
375        if !self._unknown_fields.is_empty() {
376            debug_struct.field("_unknown_fields", &self._unknown_fields);
377        }
378        debug_struct.finish()
379    }
380}
381
382impl std::fmt::Debug for super::RegisterParameters {
383    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
384        let mut debug_struct = f.debug_struct("RegisterParameters");
385        debug_struct.field("domain_name", &self.domain_name);
386        debug_struct.field("availability", &self.availability);
387        debug_struct.field("supported_privacy", &self.supported_privacy);
388        debug_struct.field("domain_notices", &self.domain_notices);
389        debug_struct.field("yearly_price", &self.yearly_price);
390        if !self._unknown_fields.is_empty() {
391            debug_struct.field("_unknown_fields", &self._unknown_fields);
392        }
393        debug_struct.finish()
394    }
395}
396
397impl std::fmt::Debug for super::TransferParameters {
398    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
399        let mut debug_struct = f.debug_struct("TransferParameters");
400        debug_struct.field("domain_name", &self.domain_name);
401        debug_struct.field("current_registrar", &self.current_registrar);
402        debug_struct.field("name_servers", &self.name_servers);
403        debug_struct.field("transfer_lock_state", &self.transfer_lock_state);
404        debug_struct.field("supported_privacy", &self.supported_privacy);
405        debug_struct.field("yearly_price", &self.yearly_price);
406        if !self._unknown_fields.is_empty() {
407            debug_struct.field("_unknown_fields", &self._unknown_fields);
408        }
409        debug_struct.finish()
410    }
411}
412
413impl std::fmt::Debug for super::AuthorizationCode {
414    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
415        let mut debug_struct = f.debug_struct("AuthorizationCode");
416        debug_struct.field("code", &self.code);
417        if !self._unknown_fields.is_empty() {
418            debug_struct.field("_unknown_fields", &self._unknown_fields);
419        }
420        debug_struct.finish()
421    }
422}
423
424impl std::fmt::Debug for super::OperationMetadata {
425    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
426        let mut debug_struct = f.debug_struct("OperationMetadata");
427        debug_struct.field("create_time", &self.create_time);
428        debug_struct.field("end_time", &self.end_time);
429        debug_struct.field("target", &self.target);
430        debug_struct.field("verb", &self.verb);
431        debug_struct.field("status_detail", &self.status_detail);
432        debug_struct.field("api_version", &self.api_version);
433        if !self._unknown_fields.is_empty() {
434            debug_struct.field("_unknown_fields", &self._unknown_fields);
435        }
436        debug_struct.finish()
437    }
438}