google_cloud_type/model/
debug.rs

1// Copyright 2024 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::Color {
21    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
22        let mut debug_struct = f.debug_struct("Color");
23        debug_struct.field("red", &self.red);
24        debug_struct.field("green", &self.green);
25        debug_struct.field("blue", &self.blue);
26        debug_struct.field("alpha", &self.alpha);
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::Date {
35    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
36        let mut debug_struct = f.debug_struct("Date");
37        debug_struct.field("year", &self.year);
38        debug_struct.field("month", &self.month);
39        debug_struct.field("day", &self.day);
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::DateTime {
48    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
49        let mut debug_struct = f.debug_struct("DateTime");
50        debug_struct.field("year", &self.year);
51        debug_struct.field("month", &self.month);
52        debug_struct.field("day", &self.day);
53        debug_struct.field("hours", &self.hours);
54        debug_struct.field("minutes", &self.minutes);
55        debug_struct.field("seconds", &self.seconds);
56        debug_struct.field("nanos", &self.nanos);
57        debug_struct.field("time_offset", &self.time_offset);
58        if !self._unknown_fields.is_empty() {
59            debug_struct.field("_unknown_fields", &self._unknown_fields);
60        }
61        debug_struct.finish()
62    }
63}
64
65impl std::fmt::Debug for super::TimeZone {
66    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
67        let mut debug_struct = f.debug_struct("TimeZone");
68        debug_struct.field("id", &self.id);
69        debug_struct.field("version", &self.version);
70        if !self._unknown_fields.is_empty() {
71            debug_struct.field("_unknown_fields", &self._unknown_fields);
72        }
73        debug_struct.finish()
74    }
75}
76
77impl std::fmt::Debug for super::Decimal {
78    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
79        let mut debug_struct = f.debug_struct("Decimal");
80        debug_struct.field("value", &self.value);
81        if !self._unknown_fields.is_empty() {
82            debug_struct.field("_unknown_fields", &self._unknown_fields);
83        }
84        debug_struct.finish()
85    }
86}
87
88impl std::fmt::Debug for super::Expr {
89    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
90        let mut debug_struct = f.debug_struct("Expr");
91        debug_struct.field("expression", &self.expression);
92        debug_struct.field("title", &self.title);
93        debug_struct.field("description", &self.description);
94        debug_struct.field("location", &self.location);
95        if !self._unknown_fields.is_empty() {
96            debug_struct.field("_unknown_fields", &self._unknown_fields);
97        }
98        debug_struct.finish()
99    }
100}
101
102impl std::fmt::Debug for super::Fraction {
103    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
104        let mut debug_struct = f.debug_struct("Fraction");
105        debug_struct.field("numerator", &self.numerator);
106        debug_struct.field("denominator", &self.denominator);
107        if !self._unknown_fields.is_empty() {
108            debug_struct.field("_unknown_fields", &self._unknown_fields);
109        }
110        debug_struct.finish()
111    }
112}
113
114impl std::fmt::Debug for super::Interval {
115    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
116        let mut debug_struct = f.debug_struct("Interval");
117        debug_struct.field("start_time", &self.start_time);
118        debug_struct.field("end_time", &self.end_time);
119        if !self._unknown_fields.is_empty() {
120            debug_struct.field("_unknown_fields", &self._unknown_fields);
121        }
122        debug_struct.finish()
123    }
124}
125
126impl std::fmt::Debug for super::LatLng {
127    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
128        let mut debug_struct = f.debug_struct("LatLng");
129        debug_struct.field("latitude", &self.latitude);
130        debug_struct.field("longitude", &self.longitude);
131        if !self._unknown_fields.is_empty() {
132            debug_struct.field("_unknown_fields", &self._unknown_fields);
133        }
134        debug_struct.finish()
135    }
136}
137
138impl std::fmt::Debug for super::LocalizedText {
139    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
140        let mut debug_struct = f.debug_struct("LocalizedText");
141        debug_struct.field("text", &self.text);
142        debug_struct.field("language_code", &self.language_code);
143        if !self._unknown_fields.is_empty() {
144            debug_struct.field("_unknown_fields", &self._unknown_fields);
145        }
146        debug_struct.finish()
147    }
148}
149
150impl std::fmt::Debug for super::Money {
151    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
152        let mut debug_struct = f.debug_struct("Money");
153        debug_struct.field("currency_code", &self.currency_code);
154        debug_struct.field("units", &self.units);
155        debug_struct.field("nanos", &self.nanos);
156        if !self._unknown_fields.is_empty() {
157            debug_struct.field("_unknown_fields", &self._unknown_fields);
158        }
159        debug_struct.finish()
160    }
161}
162
163impl std::fmt::Debug for super::PhoneNumber {
164    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
165        let mut debug_struct = f.debug_struct("PhoneNumber");
166        debug_struct.field("extension", &self.extension);
167        debug_struct.field("kind", &self.kind);
168        if !self._unknown_fields.is_empty() {
169            debug_struct.field("_unknown_fields", &self._unknown_fields);
170        }
171        debug_struct.finish()
172    }
173}
174
175impl std::fmt::Debug for super::phone_number::ShortCode {
176    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
177        let mut debug_struct = f.debug_struct("ShortCode");
178        debug_struct.field("region_code", &self.region_code);
179        debug_struct.field("number", &self.number);
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::PostalAddress {
188    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
189        let mut debug_struct = f.debug_struct("PostalAddress");
190        debug_struct.field("revision", &self.revision);
191        debug_struct.field("region_code", &self.region_code);
192        debug_struct.field("language_code", &self.language_code);
193        debug_struct.field("postal_code", &self.postal_code);
194        debug_struct.field("sorting_code", &self.sorting_code);
195        debug_struct.field("administrative_area", &self.administrative_area);
196        debug_struct.field("locality", &self.locality);
197        debug_struct.field("sublocality", &self.sublocality);
198        debug_struct.field("address_lines", &self.address_lines);
199        debug_struct.field("recipients", &self.recipients);
200        debug_struct.field("organization", &self.organization);
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::Quaternion {
209    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
210        let mut debug_struct = f.debug_struct("Quaternion");
211        debug_struct.field("x", &self.x);
212        debug_struct.field("y", &self.y);
213        debug_struct.field("z", &self.z);
214        debug_struct.field("w", &self.w);
215        if !self._unknown_fields.is_empty() {
216            debug_struct.field("_unknown_fields", &self._unknown_fields);
217        }
218        debug_struct.finish()
219    }
220}
221
222impl std::fmt::Debug for super::TimeOfDay {
223    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
224        let mut debug_struct = f.debug_struct("TimeOfDay");
225        debug_struct.field("hours", &self.hours);
226        debug_struct.field("minutes", &self.minutes);
227        debug_struct.field("seconds", &self.seconds);
228        debug_struct.field("nanos", &self.nanos);
229        if !self._unknown_fields.is_empty() {
230            debug_struct.field("_unknown_fields", &self._unknown_fields);
231        }
232        debug_struct.finish()
233    }
234}