google_cloud_location/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::ListLocationsRequest {
21    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
22        let mut debug_struct = f.debug_struct("ListLocationsRequest");
23        debug_struct.field("name", &self.name);
24        debug_struct.field("filter", &self.filter);
25        debug_struct.field("page_size", &self.page_size);
26        debug_struct.field("page_token", &self.page_token);
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::ListLocationsResponse {
35    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
36        let mut debug_struct = f.debug_struct("ListLocationsResponse");
37        debug_struct.field("locations", &self.locations);
38        debug_struct.field("next_page_token", &self.next_page_token);
39        if !self._unknown_fields.is_empty() {
40            debug_struct.field("_unknown_fields", &self._unknown_fields);
41        }
42        debug_struct.finish()
43    }
44}
45
46impl std::fmt::Debug for super::GetLocationRequest {
47    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
48        let mut debug_struct = f.debug_struct("GetLocationRequest");
49        debug_struct.field("name", &self.name);
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::Location {
58    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
59        let mut debug_struct = f.debug_struct("Location");
60        debug_struct.field("name", &self.name);
61        debug_struct.field("location_id", &self.location_id);
62        debug_struct.field("display_name", &self.display_name);
63        debug_struct.field("labels", &self.labels);
64        debug_struct.field("metadata", &self.metadata);
65        if !self._unknown_fields.is_empty() {
66            debug_struct.field("_unknown_fields", &self._unknown_fields);
67        }
68        debug_struct.finish()
69    }
70}