google_cloud_trace_v2/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::Span {
21    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
22        let mut debug_struct = f.debug_struct("Span");
23        debug_struct.field("name", &self.name);
24        debug_struct.field("span_id", &self.span_id);
25        debug_struct.field("parent_span_id", &self.parent_span_id);
26        debug_struct.field("display_name", &self.display_name);
27        debug_struct.field("start_time", &self.start_time);
28        debug_struct.field("end_time", &self.end_time);
29        debug_struct.field("attributes", &self.attributes);
30        debug_struct.field("stack_trace", &self.stack_trace);
31        debug_struct.field("time_events", &self.time_events);
32        debug_struct.field("links", &self.links);
33        debug_struct.field("status", &self.status);
34        debug_struct.field(
35            "same_process_as_parent_span",
36            &self.same_process_as_parent_span,
37        );
38        debug_struct.field("child_span_count", &self.child_span_count);
39        debug_struct.field("span_kind", &self.span_kind);
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::span::Attributes {
48    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
49        let mut debug_struct = f.debug_struct("Attributes");
50        debug_struct.field("attribute_map", &self.attribute_map);
51        debug_struct.field("dropped_attributes_count", &self.dropped_attributes_count);
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::span::TimeEvent {
60    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
61        let mut debug_struct = f.debug_struct("TimeEvent");
62        debug_struct.field("time", &self.time);
63        debug_struct.field("value", &self.value);
64        if !self._unknown_fields.is_empty() {
65            debug_struct.field("_unknown_fields", &self._unknown_fields);
66        }
67        debug_struct.finish()
68    }
69}
70
71impl std::fmt::Debug for super::span::time_event::Annotation {
72    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
73        let mut debug_struct = f.debug_struct("Annotation");
74        debug_struct.field("description", &self.description);
75        debug_struct.field("attributes", &self.attributes);
76        if !self._unknown_fields.is_empty() {
77            debug_struct.field("_unknown_fields", &self._unknown_fields);
78        }
79        debug_struct.finish()
80    }
81}
82
83impl std::fmt::Debug for super::span::time_event::MessageEvent {
84    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
85        let mut debug_struct = f.debug_struct("MessageEvent");
86        debug_struct.field("r#type", &self.r#type);
87        debug_struct.field("id", &self.id);
88        debug_struct.field("uncompressed_size_bytes", &self.uncompressed_size_bytes);
89        debug_struct.field("compressed_size_bytes", &self.compressed_size_bytes);
90        if !self._unknown_fields.is_empty() {
91            debug_struct.field("_unknown_fields", &self._unknown_fields);
92        }
93        debug_struct.finish()
94    }
95}
96
97impl std::fmt::Debug for super::span::TimeEvents {
98    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
99        let mut debug_struct = f.debug_struct("TimeEvents");
100        debug_struct.field("time_event", &self.time_event);
101        debug_struct.field("dropped_annotations_count", &self.dropped_annotations_count);
102        debug_struct.field(
103            "dropped_message_events_count",
104            &self.dropped_message_events_count,
105        );
106        if !self._unknown_fields.is_empty() {
107            debug_struct.field("_unknown_fields", &self._unknown_fields);
108        }
109        debug_struct.finish()
110    }
111}
112
113impl std::fmt::Debug for super::span::Link {
114    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
115        let mut debug_struct = f.debug_struct("Link");
116        debug_struct.field("trace_id", &self.trace_id);
117        debug_struct.field("span_id", &self.span_id);
118        debug_struct.field("r#type", &self.r#type);
119        debug_struct.field("attributes", &self.attributes);
120        if !self._unknown_fields.is_empty() {
121            debug_struct.field("_unknown_fields", &self._unknown_fields);
122        }
123        debug_struct.finish()
124    }
125}
126
127impl std::fmt::Debug for super::span::Links {
128    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
129        let mut debug_struct = f.debug_struct("Links");
130        debug_struct.field("link", &self.link);
131        debug_struct.field("dropped_links_count", &self.dropped_links_count);
132        if !self._unknown_fields.is_empty() {
133            debug_struct.field("_unknown_fields", &self._unknown_fields);
134        }
135        debug_struct.finish()
136    }
137}
138
139impl std::fmt::Debug for super::AttributeValue {
140    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
141        let mut debug_struct = f.debug_struct("AttributeValue");
142        debug_struct.field("value", &self.value);
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::StackTrace {
151    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
152        let mut debug_struct = f.debug_struct("StackTrace");
153        debug_struct.field("stack_frames", &self.stack_frames);
154        debug_struct.field("stack_trace_hash_id", &self.stack_trace_hash_id);
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::stack_trace::StackFrame {
163    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
164        let mut debug_struct = f.debug_struct("StackFrame");
165        debug_struct.field("function_name", &self.function_name);
166        debug_struct.field("original_function_name", &self.original_function_name);
167        debug_struct.field("file_name", &self.file_name);
168        debug_struct.field("line_number", &self.line_number);
169        debug_struct.field("column_number", &self.column_number);
170        debug_struct.field("load_module", &self.load_module);
171        debug_struct.field("source_version", &self.source_version);
172        if !self._unknown_fields.is_empty() {
173            debug_struct.field("_unknown_fields", &self._unknown_fields);
174        }
175        debug_struct.finish()
176    }
177}
178
179impl std::fmt::Debug for super::stack_trace::StackFrames {
180    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
181        let mut debug_struct = f.debug_struct("StackFrames");
182        debug_struct.field("frame", &self.frame);
183        debug_struct.field("dropped_frames_count", &self.dropped_frames_count);
184        if !self._unknown_fields.is_empty() {
185            debug_struct.field("_unknown_fields", &self._unknown_fields);
186        }
187        debug_struct.finish()
188    }
189}
190
191impl std::fmt::Debug for super::Module {
192    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
193        let mut debug_struct = f.debug_struct("Module");
194        debug_struct.field("module", &self.module);
195        debug_struct.field("build_id", &self.build_id);
196        if !self._unknown_fields.is_empty() {
197            debug_struct.field("_unknown_fields", &self._unknown_fields);
198        }
199        debug_struct.finish()
200    }
201}
202
203impl std::fmt::Debug for super::TruncatableString {
204    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
205        let mut debug_struct = f.debug_struct("TruncatableString");
206        debug_struct.field("value", &self.value);
207        debug_struct.field("truncated_byte_count", &self.truncated_byte_count);
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::BatchWriteSpansRequest {
216    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
217        let mut debug_struct = f.debug_struct("BatchWriteSpansRequest");
218        debug_struct.field("name", &self.name);
219        debug_struct.field("spans", &self.spans);
220        if !self._unknown_fields.is_empty() {
221            debug_struct.field("_unknown_fields", &self._unknown_fields);
222        }
223        debug_struct.finish()
224    }
225}