google_cloud_datastore_admin_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::CommonMetadata {
21    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
22        let mut debug_struct = f.debug_struct("CommonMetadata");
23        debug_struct.field("start_time", &self.start_time);
24        debug_struct.field("end_time", &self.end_time);
25        debug_struct.field("operation_type", &self.operation_type);
26        debug_struct.field("labels", &self.labels);
27        debug_struct.field("state", &self.state);
28        if !self._unknown_fields.is_empty() {
29            debug_struct.field("_unknown_fields", &self._unknown_fields);
30        }
31        debug_struct.finish()
32    }
33}
34
35impl std::fmt::Debug for super::Progress {
36    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
37        let mut debug_struct = f.debug_struct("Progress");
38        debug_struct.field("work_completed", &self.work_completed);
39        debug_struct.field("work_estimated", &self.work_estimated);
40        if !self._unknown_fields.is_empty() {
41            debug_struct.field("_unknown_fields", &self._unknown_fields);
42        }
43        debug_struct.finish()
44    }
45}
46
47impl std::fmt::Debug for super::ExportEntitiesRequest {
48    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
49        let mut debug_struct = f.debug_struct("ExportEntitiesRequest");
50        debug_struct.field("project_id", &self.project_id);
51        debug_struct.field("labels", &self.labels);
52        debug_struct.field("entity_filter", &self.entity_filter);
53        debug_struct.field("output_url_prefix", &self.output_url_prefix);
54        if !self._unknown_fields.is_empty() {
55            debug_struct.field("_unknown_fields", &self._unknown_fields);
56        }
57        debug_struct.finish()
58    }
59}
60
61impl std::fmt::Debug for super::ImportEntitiesRequest {
62    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
63        let mut debug_struct = f.debug_struct("ImportEntitiesRequest");
64        debug_struct.field("project_id", &self.project_id);
65        debug_struct.field("labels", &self.labels);
66        debug_struct.field("input_url", &self.input_url);
67        debug_struct.field("entity_filter", &self.entity_filter);
68        if !self._unknown_fields.is_empty() {
69            debug_struct.field("_unknown_fields", &self._unknown_fields);
70        }
71        debug_struct.finish()
72    }
73}
74
75impl std::fmt::Debug for super::ExportEntitiesResponse {
76    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
77        let mut debug_struct = f.debug_struct("ExportEntitiesResponse");
78        debug_struct.field("output_url", &self.output_url);
79        if !self._unknown_fields.is_empty() {
80            debug_struct.field("_unknown_fields", &self._unknown_fields);
81        }
82        debug_struct.finish()
83    }
84}
85
86impl std::fmt::Debug for super::ExportEntitiesMetadata {
87    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
88        let mut debug_struct = f.debug_struct("ExportEntitiesMetadata");
89        debug_struct.field("common", &self.common);
90        debug_struct.field("progress_entities", &self.progress_entities);
91        debug_struct.field("progress_bytes", &self.progress_bytes);
92        debug_struct.field("entity_filter", &self.entity_filter);
93        debug_struct.field("output_url_prefix", &self.output_url_prefix);
94        if !self._unknown_fields.is_empty() {
95            debug_struct.field("_unknown_fields", &self._unknown_fields);
96        }
97        debug_struct.finish()
98    }
99}
100
101impl std::fmt::Debug for super::ImportEntitiesMetadata {
102    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
103        let mut debug_struct = f.debug_struct("ImportEntitiesMetadata");
104        debug_struct.field("common", &self.common);
105        debug_struct.field("progress_entities", &self.progress_entities);
106        debug_struct.field("progress_bytes", &self.progress_bytes);
107        debug_struct.field("entity_filter", &self.entity_filter);
108        debug_struct.field("input_url", &self.input_url);
109        if !self._unknown_fields.is_empty() {
110            debug_struct.field("_unknown_fields", &self._unknown_fields);
111        }
112        debug_struct.finish()
113    }
114}
115
116impl std::fmt::Debug for super::EntityFilter {
117    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
118        let mut debug_struct = f.debug_struct("EntityFilter");
119        debug_struct.field("kinds", &self.kinds);
120        debug_struct.field("namespace_ids", &self.namespace_ids);
121        if !self._unknown_fields.is_empty() {
122            debug_struct.field("_unknown_fields", &self._unknown_fields);
123        }
124        debug_struct.finish()
125    }
126}
127
128impl std::fmt::Debug for super::CreateIndexRequest {
129    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
130        let mut debug_struct = f.debug_struct("CreateIndexRequest");
131        debug_struct.field("project_id", &self.project_id);
132        debug_struct.field("index", &self.index);
133        if !self._unknown_fields.is_empty() {
134            debug_struct.field("_unknown_fields", &self._unknown_fields);
135        }
136        debug_struct.finish()
137    }
138}
139
140impl std::fmt::Debug for super::DeleteIndexRequest {
141    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
142        let mut debug_struct = f.debug_struct("DeleteIndexRequest");
143        debug_struct.field("project_id", &self.project_id);
144        debug_struct.field("index_id", &self.index_id);
145        if !self._unknown_fields.is_empty() {
146            debug_struct.field("_unknown_fields", &self._unknown_fields);
147        }
148        debug_struct.finish()
149    }
150}
151
152impl std::fmt::Debug for super::GetIndexRequest {
153    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
154        let mut debug_struct = f.debug_struct("GetIndexRequest");
155        debug_struct.field("project_id", &self.project_id);
156        debug_struct.field("index_id", &self.index_id);
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::ListIndexesRequest {
165    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
166        let mut debug_struct = f.debug_struct("ListIndexesRequest");
167        debug_struct.field("project_id", &self.project_id);
168        debug_struct.field("filter", &self.filter);
169        debug_struct.field("page_size", &self.page_size);
170        debug_struct.field("page_token", &self.page_token);
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::ListIndexesResponse {
179    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
180        let mut debug_struct = f.debug_struct("ListIndexesResponse");
181        debug_struct.field("indexes", &self.indexes);
182        debug_struct.field("next_page_token", &self.next_page_token);
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::IndexOperationMetadata {
191    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
192        let mut debug_struct = f.debug_struct("IndexOperationMetadata");
193        debug_struct.field("common", &self.common);
194        debug_struct.field("progress_entities", &self.progress_entities);
195        debug_struct.field("index_id", &self.index_id);
196        if !self._unknown_fields.is_empty() {
197            debug_struct.field("_unknown_fields", &self._unknown_fields);
198        }
199        debug_struct.finish()
200    }
201}
202
203impl std::fmt::Debug for super::DatastoreFirestoreMigrationMetadata {
204    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
205        let mut debug_struct = f.debug_struct("DatastoreFirestoreMigrationMetadata");
206        debug_struct.field("migration_state", &self.migration_state);
207        debug_struct.field("migration_step", &self.migration_step);
208        if !self._unknown_fields.is_empty() {
209            debug_struct.field("_unknown_fields", &self._unknown_fields);
210        }
211        debug_struct.finish()
212    }
213}
214
215impl std::fmt::Debug for super::Index {
216    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
217        let mut debug_struct = f.debug_struct("Index");
218        debug_struct.field("project_id", &self.project_id);
219        debug_struct.field("index_id", &self.index_id);
220        debug_struct.field("kind", &self.kind);
221        debug_struct.field("ancestor", &self.ancestor);
222        debug_struct.field("properties", &self.properties);
223        debug_struct.field("state", &self.state);
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::index::IndexedProperty {
232    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
233        let mut debug_struct = f.debug_struct("IndexedProperty");
234        debug_struct.field("name", &self.name);
235        debug_struct.field("direction", &self.direction);
236        if !self._unknown_fields.is_empty() {
237            debug_struct.field("_unknown_fields", &self._unknown_fields);
238        }
239        debug_struct.finish()
240    }
241}
242
243impl std::fmt::Debug for super::MigrationStateEvent {
244    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
245        let mut debug_struct = f.debug_struct("MigrationStateEvent");
246        debug_struct.field("state", &self.state);
247        if !self._unknown_fields.is_empty() {
248            debug_struct.field("_unknown_fields", &self._unknown_fields);
249        }
250        debug_struct.finish()
251    }
252}
253
254impl std::fmt::Debug for super::MigrationProgressEvent {
255    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
256        let mut debug_struct = f.debug_struct("MigrationProgressEvent");
257        debug_struct.field("step", &self.step);
258        debug_struct.field("step_details", &self.step_details);
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::migration_progress_event::PrepareStepDetails {
267    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
268        let mut debug_struct = f.debug_struct("PrepareStepDetails");
269        debug_struct.field("concurrency_mode", &self.concurrency_mode);
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::migration_progress_event::RedirectWritesStepDetails {
278    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
279        let mut debug_struct = f.debug_struct("RedirectWritesStepDetails");
280        debug_struct.field("concurrency_mode", &self.concurrency_mode);
281        if !self._unknown_fields.is_empty() {
282            debug_struct.field("_unknown_fields", &self._unknown_fields);
283        }
284        debug_struct.finish()
285    }
286}