Skip to main content

google_cloud_billing_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::BillingAccount {
21    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
22        let mut debug_struct = f.debug_struct("BillingAccount");
23        debug_struct.field("name", &self.name);
24        debug_struct.field("open", &self.open);
25        debug_struct.field("display_name", &self.display_name);
26        debug_struct.field("master_billing_account", &self.master_billing_account);
27        debug_struct.field("parent", &self.parent);
28        debug_struct.field("currency_code", &self.currency_code);
29        if !self._unknown_fields.is_empty() {
30            debug_struct.field("_unknown_fields", &self._unknown_fields);
31        }
32        debug_struct.finish()
33    }
34}
35
36impl std::fmt::Debug for super::ProjectBillingInfo {
37    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
38        let mut debug_struct = f.debug_struct("ProjectBillingInfo");
39        debug_struct.field("name", &self.name);
40        debug_struct.field("project_id", &self.project_id);
41        debug_struct.field("billing_account_name", &self.billing_account_name);
42        debug_struct.field("billing_enabled", &self.billing_enabled);
43        if !self._unknown_fields.is_empty() {
44            debug_struct.field("_unknown_fields", &self._unknown_fields);
45        }
46        debug_struct.finish()
47    }
48}
49
50impl std::fmt::Debug for super::GetBillingAccountRequest {
51    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
52        let mut debug_struct = f.debug_struct("GetBillingAccountRequest");
53        debug_struct.field("name", &self.name);
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::ListBillingAccountsRequest {
62    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
63        let mut debug_struct = f.debug_struct("ListBillingAccountsRequest");
64        debug_struct.field("page_size", &self.page_size);
65        debug_struct.field("page_token", &self.page_token);
66        debug_struct.field("filter", &self.filter);
67        debug_struct.field("parent", &self.parent);
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::ListBillingAccountsResponse {
76    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
77        let mut debug_struct = f.debug_struct("ListBillingAccountsResponse");
78        debug_struct.field("billing_accounts", &self.billing_accounts);
79        debug_struct.field("next_page_token", &self.next_page_token);
80        if !self._unknown_fields.is_empty() {
81            debug_struct.field("_unknown_fields", &self._unknown_fields);
82        }
83        debug_struct.finish()
84    }
85}
86
87impl std::fmt::Debug for super::CreateBillingAccountRequest {
88    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
89        let mut debug_struct = f.debug_struct("CreateBillingAccountRequest");
90        debug_struct.field("billing_account", &self.billing_account);
91        debug_struct.field("parent", &self.parent);
92        if !self._unknown_fields.is_empty() {
93            debug_struct.field("_unknown_fields", &self._unknown_fields);
94        }
95        debug_struct.finish()
96    }
97}
98
99impl std::fmt::Debug for super::UpdateBillingAccountRequest {
100    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
101        let mut debug_struct = f.debug_struct("UpdateBillingAccountRequest");
102        debug_struct.field("name", &self.name);
103        debug_struct.field("account", &self.account);
104        debug_struct.field("update_mask", &self.update_mask);
105        if !self._unknown_fields.is_empty() {
106            debug_struct.field("_unknown_fields", &self._unknown_fields);
107        }
108        debug_struct.finish()
109    }
110}
111
112impl std::fmt::Debug for super::ListProjectBillingInfoRequest {
113    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
114        let mut debug_struct = f.debug_struct("ListProjectBillingInfoRequest");
115        debug_struct.field("name", &self.name);
116        debug_struct.field("page_size", &self.page_size);
117        debug_struct.field("page_token", &self.page_token);
118        if !self._unknown_fields.is_empty() {
119            debug_struct.field("_unknown_fields", &self._unknown_fields);
120        }
121        debug_struct.finish()
122    }
123}
124
125impl std::fmt::Debug for super::ListProjectBillingInfoResponse {
126    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
127        let mut debug_struct = f.debug_struct("ListProjectBillingInfoResponse");
128        debug_struct.field("project_billing_info", &self.project_billing_info);
129        debug_struct.field("next_page_token", &self.next_page_token);
130        if !self._unknown_fields.is_empty() {
131            debug_struct.field("_unknown_fields", &self._unknown_fields);
132        }
133        debug_struct.finish()
134    }
135}
136
137impl std::fmt::Debug for super::GetProjectBillingInfoRequest {
138    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
139        let mut debug_struct = f.debug_struct("GetProjectBillingInfoRequest");
140        debug_struct.field("name", &self.name);
141        if !self._unknown_fields.is_empty() {
142            debug_struct.field("_unknown_fields", &self._unknown_fields);
143        }
144        debug_struct.finish()
145    }
146}
147
148impl std::fmt::Debug for super::UpdateProjectBillingInfoRequest {
149    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
150        let mut debug_struct = f.debug_struct("UpdateProjectBillingInfoRequest");
151        debug_struct.field("name", &self.name);
152        debug_struct.field("project_billing_info", &self.project_billing_info);
153        if !self._unknown_fields.is_empty() {
154            debug_struct.field("_unknown_fields", &self._unknown_fields);
155        }
156        debug_struct.finish()
157    }
158}
159
160impl std::fmt::Debug for super::MoveBillingAccountRequest {
161    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
162        let mut debug_struct = f.debug_struct("MoveBillingAccountRequest");
163        debug_struct.field("name", &self.name);
164        debug_struct.field("destination_parent", &self.destination_parent);
165        if !self._unknown_fields.is_empty() {
166            debug_struct.field("_unknown_fields", &self._unknown_fields);
167        }
168        debug_struct.finish()
169    }
170}
171
172impl std::fmt::Debug for super::Service {
173    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
174        let mut debug_struct = f.debug_struct("Service");
175        debug_struct.field("name", &self.name);
176        debug_struct.field("service_id", &self.service_id);
177        debug_struct.field("display_name", &self.display_name);
178        debug_struct.field("business_entity_name", &self.business_entity_name);
179        if !self._unknown_fields.is_empty() {
180            debug_struct.field("_unknown_fields", &self._unknown_fields);
181        }
182        debug_struct.finish()
183    }
184}
185
186impl std::fmt::Debug for super::Sku {
187    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
188        let mut debug_struct = f.debug_struct("Sku");
189        debug_struct.field("name", &self.name);
190        debug_struct.field("sku_id", &self.sku_id);
191        debug_struct.field("description", &self.description);
192        debug_struct.field("category", &self.category);
193        debug_struct.field("service_regions", &self.service_regions);
194        debug_struct.field("pricing_info", &self.pricing_info);
195        debug_struct.field("service_provider_name", &self.service_provider_name);
196        debug_struct.field("geo_taxonomy", &self.geo_taxonomy);
197        if !self._unknown_fields.is_empty() {
198            debug_struct.field("_unknown_fields", &self._unknown_fields);
199        }
200        debug_struct.finish()
201    }
202}
203
204impl std::fmt::Debug for super::Category {
205    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
206        let mut debug_struct = f.debug_struct("Category");
207        debug_struct.field("service_display_name", &self.service_display_name);
208        debug_struct.field("resource_family", &self.resource_family);
209        debug_struct.field("resource_group", &self.resource_group);
210        debug_struct.field("usage_type", &self.usage_type);
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::PricingInfo {
219    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
220        let mut debug_struct = f.debug_struct("PricingInfo");
221        debug_struct.field("effective_time", &self.effective_time);
222        debug_struct.field("summary", &self.summary);
223        debug_struct.field("pricing_expression", &self.pricing_expression);
224        debug_struct.field("aggregation_info", &self.aggregation_info);
225        debug_struct.field("currency_conversion_rate", &self.currency_conversion_rate);
226        if !self._unknown_fields.is_empty() {
227            debug_struct.field("_unknown_fields", &self._unknown_fields);
228        }
229        debug_struct.finish()
230    }
231}
232
233impl std::fmt::Debug for super::PricingExpression {
234    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
235        let mut debug_struct = f.debug_struct("PricingExpression");
236        debug_struct.field("usage_unit", &self.usage_unit);
237        debug_struct.field("display_quantity", &self.display_quantity);
238        debug_struct.field("tiered_rates", &self.tiered_rates);
239        debug_struct.field("usage_unit_description", &self.usage_unit_description);
240        debug_struct.field("base_unit", &self.base_unit);
241        debug_struct.field("base_unit_description", &self.base_unit_description);
242        debug_struct.field(
243            "base_unit_conversion_factor",
244            &self.base_unit_conversion_factor,
245        );
246        if !self._unknown_fields.is_empty() {
247            debug_struct.field("_unknown_fields", &self._unknown_fields);
248        }
249        debug_struct.finish()
250    }
251}
252
253impl std::fmt::Debug for super::pricing_expression::TierRate {
254    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
255        let mut debug_struct = f.debug_struct("TierRate");
256        debug_struct.field("start_usage_amount", &self.start_usage_amount);
257        debug_struct.field("unit_price", &self.unit_price);
258        if !self._unknown_fields.is_empty() {
259            debug_struct.field("_unknown_fields", &self._unknown_fields);
260        }
261        debug_struct.finish()
262    }
263}
264
265impl std::fmt::Debug for super::AggregationInfo {
266    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
267        let mut debug_struct = f.debug_struct("AggregationInfo");
268        debug_struct.field("aggregation_level", &self.aggregation_level);
269        debug_struct.field("aggregation_interval", &self.aggregation_interval);
270        debug_struct.field("aggregation_count", &self.aggregation_count);
271        if !self._unknown_fields.is_empty() {
272            debug_struct.field("_unknown_fields", &self._unknown_fields);
273        }
274        debug_struct.finish()
275    }
276}
277
278impl std::fmt::Debug for super::GeoTaxonomy {
279    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
280        let mut debug_struct = f.debug_struct("GeoTaxonomy");
281        debug_struct.field("r#type", &self.r#type);
282        debug_struct.field("regions", &self.regions);
283        if !self._unknown_fields.is_empty() {
284            debug_struct.field("_unknown_fields", &self._unknown_fields);
285        }
286        debug_struct.finish()
287    }
288}
289
290impl std::fmt::Debug for super::ListServicesRequest {
291    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
292        let mut debug_struct = f.debug_struct("ListServicesRequest");
293        debug_struct.field("page_size", &self.page_size);
294        debug_struct.field("page_token", &self.page_token);
295        if !self._unknown_fields.is_empty() {
296            debug_struct.field("_unknown_fields", &self._unknown_fields);
297        }
298        debug_struct.finish()
299    }
300}
301
302impl std::fmt::Debug for super::ListServicesResponse {
303    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
304        let mut debug_struct = f.debug_struct("ListServicesResponse");
305        debug_struct.field("services", &self.services);
306        debug_struct.field("next_page_token", &self.next_page_token);
307        if !self._unknown_fields.is_empty() {
308            debug_struct.field("_unknown_fields", &self._unknown_fields);
309        }
310        debug_struct.finish()
311    }
312}
313
314impl std::fmt::Debug for super::ListSkusRequest {
315    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
316        let mut debug_struct = f.debug_struct("ListSkusRequest");
317        debug_struct.field("parent", &self.parent);
318        debug_struct.field("start_time", &self.start_time);
319        debug_struct.field("end_time", &self.end_time);
320        debug_struct.field("currency_code", &self.currency_code);
321        debug_struct.field("page_size", &self.page_size);
322        debug_struct.field("page_token", &self.page_token);
323        if !self._unknown_fields.is_empty() {
324            debug_struct.field("_unknown_fields", &self._unknown_fields);
325        }
326        debug_struct.finish()
327    }
328}
329
330impl std::fmt::Debug for super::ListSkusResponse {
331    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
332        let mut debug_struct = f.debug_struct("ListSkusResponse");
333        debug_struct.field("skus", &self.skus);
334        debug_struct.field("next_page_token", &self.next_page_token);
335        if !self._unknown_fields.is_empty() {
336            debug_struct.field("_unknown_fields", &self._unknown_fields);
337        }
338        debug_struct.finish()
339    }
340}