Skip to main content

google_maps_geocode_v4/model/
debug.rs

1// Copyright 2026 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::SearchDestinationsRequest {
21    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
22        let mut debug_struct = f.debug_struct("SearchDestinationsRequest");
23        debug_struct.field("travel_modes", &self.travel_modes);
24        debug_struct.field("language_code", &self.language_code);
25        debug_struct.field("region_code", &self.region_code);
26        debug_struct.field("primary_query", &self.primary_query);
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::search_destinations_request::AddressQuery {
35    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
36        let mut debug_struct = f.debug_struct("AddressQuery");
37        debug_struct.field("kind", &self.kind);
38        if !self._unknown_fields.is_empty() {
39            debug_struct.field("_unknown_fields", &self._unknown_fields);
40        }
41        debug_struct.finish()
42    }
43}
44
45impl std::fmt::Debug for super::search_destinations_request::LocationQuery {
46    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
47        let mut debug_struct = f.debug_struct("LocationQuery");
48        debug_struct.field("place_filter", &self.place_filter);
49        debug_struct.field("kind", &self.kind);
50        if !self._unknown_fields.is_empty() {
51            debug_struct.field("_unknown_fields", &self._unknown_fields);
52        }
53        debug_struct.finish()
54    }
55}
56
57impl std::fmt::Debug for super::search_destinations_request::location_query::PlaceFilter {
58    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
59        let mut debug_struct = f.debug_struct("PlaceFilter");
60        debug_struct.field("structure_type", &self.structure_type);
61        debug_struct.field("addressability", &self.addressability);
62        if !self._unknown_fields.is_empty() {
63            debug_struct.field("_unknown_fields", &self._unknown_fields);
64        }
65        debug_struct.finish()
66    }
67}
68
69impl std::fmt::Debug for super::SearchDestinationsResponse {
70    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
71        let mut debug_struct = f.debug_struct("SearchDestinationsResponse");
72        debug_struct.field("destinations", &self.destinations);
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::Destination {
81    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
82        let mut debug_struct = f.debug_struct("Destination");
83        debug_struct.field("primary", &self.primary);
84        debug_struct.field("containing_places", &self.containing_places);
85        debug_struct.field("sub_destinations", &self.sub_destinations);
86        debug_struct.field("landmarks", &self.landmarks);
87        debug_struct.field("entrances", &self.entrances);
88        debug_struct.field("navigation_points", &self.navigation_points);
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::PlaceView {
97    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
98        let mut debug_struct = f.debug_struct("PlaceView");
99        debug_struct.field("place", &self.place);
100        debug_struct.field("place_id", &self.place_id);
101        debug_struct.field("display_name", &self.display_name);
102        debug_struct.field("primary_type", &self.primary_type);
103        debug_struct.field("types", &self.types);
104        debug_struct.field("formatted_address", &self.formatted_address);
105        debug_struct.field("postal_address", &self.postal_address);
106        debug_struct.field("structure_type", &self.structure_type);
107        debug_struct.field("location", &self.location);
108        debug_struct.field("display_polygon", &self.display_polygon);
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::Entrance {
117    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
118        let mut debug_struct = f.debug_struct("Entrance");
119        debug_struct.field("location", &self.location);
120        debug_struct.field("tags", &self.tags);
121        debug_struct.field("place", &self.place);
122        if !self._unknown_fields.is_empty() {
123            debug_struct.field("_unknown_fields", &self._unknown_fields);
124        }
125        debug_struct.finish()
126    }
127}
128
129impl std::fmt::Debug for super::NavigationPoint {
130    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
131        let mut debug_struct = f.debug_struct("NavigationPoint");
132        debug_struct.field("navigation_point_token", &self.navigation_point_token);
133        debug_struct.field("display_name", &self.display_name);
134        debug_struct.field("location", &self.location);
135        debug_struct.field("travel_modes", &self.travel_modes);
136        debug_struct.field("usages", &self.usages);
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::Landmark {
145    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
146        let mut debug_struct = f.debug_struct("Landmark");
147        debug_struct.field("relational_description", &self.relational_description);
148        debug_struct.field("tags", &self.tags);
149        debug_struct.field(
150            "straight_line_distance_meters",
151            &self.straight_line_distance_meters,
152        );
153        debug_struct.field("travel_distance_meters", &self.travel_distance_meters);
154        debug_struct.field("landmark", &self.landmark);
155        if !self._unknown_fields.is_empty() {
156            debug_struct.field("_unknown_fields", &self._unknown_fields);
157        }
158        debug_struct.finish()
159    }
160}
161
162impl std::fmt::Debug for super::GeocodeAddressRequest {
163    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
164        let mut debug_struct = f.debug_struct("GeocodeAddressRequest");
165        debug_struct.field("location_bias", &self.location_bias);
166        debug_struct.field("language_code", &self.language_code);
167        debug_struct.field("region_code", &self.region_code);
168        debug_struct.field("address_input", &self.address_input);
169        if !self._unknown_fields.is_empty() {
170            debug_struct.field("_unknown_fields", &self._unknown_fields);
171        }
172        debug_struct.finish()
173    }
174}
175
176impl std::fmt::Debug for super::geocode_address_request::LocationBias {
177    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
178        let mut debug_struct = f.debug_struct("LocationBias");
179        debug_struct.field("r#type", &self.r#type);
180        if !self._unknown_fields.is_empty() {
181            debug_struct.field("_unknown_fields", &self._unknown_fields);
182        }
183        debug_struct.finish()
184    }
185}
186
187impl std::fmt::Debug for super::GeocodeLocationRequest {
188    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
189        let mut debug_struct = f.debug_struct("GeocodeLocationRequest");
190        debug_struct.field("language_code", &self.language_code);
191        debug_struct.field("region_code", &self.region_code);
192        debug_struct.field("types", &self.types);
193        debug_struct.field("granularity", &self.granularity);
194        debug_struct.field("location_input", &self.location_input);
195        if !self._unknown_fields.is_empty() {
196            debug_struct.field("_unknown_fields", &self._unknown_fields);
197        }
198        debug_struct.finish()
199    }
200}
201
202impl std::fmt::Debug for super::GeocodePlaceRequest {
203    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
204        let mut debug_struct = f.debug_struct("GeocodePlaceRequest");
205        debug_struct.field("place", &self.place);
206        debug_struct.field("language_code", &self.language_code);
207        debug_struct.field("region_code", &self.region_code);
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::PlusCode {
216    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
217        let mut debug_struct = f.debug_struct("PlusCode");
218        debug_struct.field("global_code", &self.global_code);
219        debug_struct.field("compound_code", &self.compound_code);
220        if !self._unknown_fields.is_empty() {
221            debug_struct.field("_unknown_fields", &self._unknown_fields);
222        }
223        debug_struct.finish()
224    }
225}
226
227impl std::fmt::Debug for super::GeocodeResult {
228    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
229        let mut debug_struct = f.debug_struct("GeocodeResult");
230        debug_struct.field("place", &self.place);
231        debug_struct.field("place_id", &self.place_id);
232        debug_struct.field("location", &self.location);
233        debug_struct.field("granularity", &self.granularity);
234        debug_struct.field("viewport", &self.viewport);
235        debug_struct.field("bounds", &self.bounds);
236        debug_struct.field("formatted_address", &self.formatted_address);
237        debug_struct.field("postal_address", &self.postal_address);
238        debug_struct.field("address_components", &self.address_components);
239        debug_struct.field("postal_code_localities", &self.postal_code_localities);
240        debug_struct.field("types", &self.types);
241        debug_struct.field("plus_code", &self.plus_code);
242        if !self._unknown_fields.is_empty() {
243            debug_struct.field("_unknown_fields", &self._unknown_fields);
244        }
245        debug_struct.finish()
246    }
247}
248
249impl std::fmt::Debug for super::geocode_result::AddressComponent {
250    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
251        let mut debug_struct = f.debug_struct("AddressComponent");
252        debug_struct.field("long_text", &self.long_text);
253        debug_struct.field("short_text", &self.short_text);
254        debug_struct.field("types", &self.types);
255        debug_struct.field("language_code", &self.language_code);
256        if !self._unknown_fields.is_empty() {
257            debug_struct.field("_unknown_fields", &self._unknown_fields);
258        }
259        debug_struct.finish()
260    }
261}
262
263impl std::fmt::Debug for super::GeocodeAddressResponse {
264    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
265        let mut debug_struct = f.debug_struct("GeocodeAddressResponse");
266        debug_struct.field("results", &self.results);
267        if !self._unknown_fields.is_empty() {
268            debug_struct.field("_unknown_fields", &self._unknown_fields);
269        }
270        debug_struct.finish()
271    }
272}
273
274impl std::fmt::Debug for super::GeocodeLocationResponse {
275    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
276        let mut debug_struct = f.debug_struct("GeocodeLocationResponse");
277        debug_struct.field("results", &self.results);
278        debug_struct.field("plus_code", &self.plus_code);
279        if !self._unknown_fields.is_empty() {
280            debug_struct.field("_unknown_fields", &self._unknown_fields);
281        }
282        debug_struct.finish()
283    }
284}