Skip to main content

google_cloud_advisorynotifications_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::Notification {
21    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
22        let mut debug_struct = f.debug_struct("Notification");
23        debug_struct.field("name", &self.name);
24        debug_struct.field("subject", &self.subject);
25        debug_struct.field("messages", &self.messages);
26        debug_struct.field("create_time", &self.create_time);
27        debug_struct.field("notification_type", &self.notification_type);
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::Text {
36    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
37        let mut debug_struct = f.debug_struct("Text");
38        debug_struct.field("en_text", &self.en_text);
39        debug_struct.field("localized_text", &self.localized_text);
40        debug_struct.field("localization_state", &self.localization_state);
41        if !self._unknown_fields.is_empty() {
42            debug_struct.field("_unknown_fields", &self._unknown_fields);
43        }
44        debug_struct.finish()
45    }
46}
47
48impl std::fmt::Debug for super::Subject {
49    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
50        let mut debug_struct = f.debug_struct("Subject");
51        debug_struct.field("text", &self.text);
52        if !self._unknown_fields.is_empty() {
53            debug_struct.field("_unknown_fields", &self._unknown_fields);
54        }
55        debug_struct.finish()
56    }
57}
58
59impl std::fmt::Debug for super::Message {
60    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
61        let mut debug_struct = f.debug_struct("Message");
62        debug_struct.field("body", &self.body);
63        debug_struct.field("attachments", &self.attachments);
64        debug_struct.field("create_time", &self.create_time);
65        debug_struct.field("localization_time", &self.localization_time);
66        if !self._unknown_fields.is_empty() {
67            debug_struct.field("_unknown_fields", &self._unknown_fields);
68        }
69        debug_struct.finish()
70    }
71}
72
73impl std::fmt::Debug for super::message::Body {
74    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
75        let mut debug_struct = f.debug_struct("Body");
76        debug_struct.field("text", &self.text);
77        if !self._unknown_fields.is_empty() {
78            debug_struct.field("_unknown_fields", &self._unknown_fields);
79        }
80        debug_struct.finish()
81    }
82}
83
84impl std::fmt::Debug for super::Attachment {
85    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
86        let mut debug_struct = f.debug_struct("Attachment");
87        debug_struct.field("display_name", &self.display_name);
88        debug_struct.field("data", &self.data);
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::Csv {
97    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
98        let mut debug_struct = f.debug_struct("Csv");
99        debug_struct.field("headers", &self.headers);
100        debug_struct.field("data_rows", &self.data_rows);
101        if !self._unknown_fields.is_empty() {
102            debug_struct.field("_unknown_fields", &self._unknown_fields);
103        }
104        debug_struct.finish()
105    }
106}
107
108impl std::fmt::Debug for super::csv::CsvRow {
109    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
110        let mut debug_struct = f.debug_struct("CsvRow");
111        debug_struct.field("entries", &self.entries);
112        if !self._unknown_fields.is_empty() {
113            debug_struct.field("_unknown_fields", &self._unknown_fields);
114        }
115        debug_struct.finish()
116    }
117}
118
119impl std::fmt::Debug for super::ListNotificationsRequest {
120    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
121        let mut debug_struct = f.debug_struct("ListNotificationsRequest");
122        debug_struct.field("parent", &self.parent);
123        debug_struct.field("page_size", &self.page_size);
124        debug_struct.field("page_token", &self.page_token);
125        debug_struct.field("view", &self.view);
126        debug_struct.field("language_code", &self.language_code);
127        if !self._unknown_fields.is_empty() {
128            debug_struct.field("_unknown_fields", &self._unknown_fields);
129        }
130        debug_struct.finish()
131    }
132}
133
134impl std::fmt::Debug for super::ListNotificationsResponse {
135    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
136        let mut debug_struct = f.debug_struct("ListNotificationsResponse");
137        debug_struct.field("notifications", &self.notifications);
138        debug_struct.field("next_page_token", &self.next_page_token);
139        debug_struct.field("total_size", &self.total_size);
140        if !self._unknown_fields.is_empty() {
141            debug_struct.field("_unknown_fields", &self._unknown_fields);
142        }
143        debug_struct.finish()
144    }
145}
146
147impl std::fmt::Debug for super::GetNotificationRequest {
148    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
149        let mut debug_struct = f.debug_struct("GetNotificationRequest");
150        debug_struct.field("name", &self.name);
151        debug_struct.field("language_code", &self.language_code);
152        if !self._unknown_fields.is_empty() {
153            debug_struct.field("_unknown_fields", &self._unknown_fields);
154        }
155        debug_struct.finish()
156    }
157}
158
159impl std::fmt::Debug for super::Settings {
160    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
161        let mut debug_struct = f.debug_struct("Settings");
162        debug_struct.field("name", &self.name);
163        debug_struct.field("notification_settings", &self.notification_settings);
164        debug_struct.field("etag", &self.etag);
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::NotificationSettings {
173    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
174        let mut debug_struct = f.debug_struct("NotificationSettings");
175        debug_struct.field("enabled", &self.enabled);
176        if !self._unknown_fields.is_empty() {
177            debug_struct.field("_unknown_fields", &self._unknown_fields);
178        }
179        debug_struct.finish()
180    }
181}
182
183impl std::fmt::Debug for super::GetSettingsRequest {
184    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
185        let mut debug_struct = f.debug_struct("GetSettingsRequest");
186        debug_struct.field("name", &self.name);
187        if !self._unknown_fields.is_empty() {
188            debug_struct.field("_unknown_fields", &self._unknown_fields);
189        }
190        debug_struct.finish()
191    }
192}
193
194impl std::fmt::Debug for super::UpdateSettingsRequest {
195    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
196        let mut debug_struct = f.debug_struct("UpdateSettingsRequest");
197        debug_struct.field("settings", &self.settings);
198        if !self._unknown_fields.is_empty() {
199            debug_struct.field("_unknown_fields", &self._unknown_fields);
200        }
201        debug_struct.finish()
202    }
203}