Skip to main content

google_cloud_trace_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::Trace {
21    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
22        let mut debug_struct = f.debug_struct("Trace");
23        debug_struct.field("project_id", &self.project_id);
24        debug_struct.field("trace_id", &self.trace_id);
25        debug_struct.field("spans", &self.spans);
26        if !self._unknown_fields.is_empty() {
27            debug_struct.field("_unknown_fields", &self._unknown_fields);
28        }
29        debug_struct.finish()
30    }
31}
32
33impl std::fmt::Debug for super::Traces {
34    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
35        let mut debug_struct = f.debug_struct("Traces");
36        debug_struct.field("traces", &self.traces);
37        if !self._unknown_fields.is_empty() {
38            debug_struct.field("_unknown_fields", &self._unknown_fields);
39        }
40        debug_struct.finish()
41    }
42}
43
44impl std::fmt::Debug for super::TraceSpan {
45    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
46        let mut debug_struct = f.debug_struct("TraceSpan");
47        debug_struct.field("span_id", &self.span_id);
48        debug_struct.field("kind", &self.kind);
49        debug_struct.field("name", &self.name);
50        debug_struct.field("start_time", &self.start_time);
51        debug_struct.field("end_time", &self.end_time);
52        debug_struct.field("parent_span_id", &self.parent_span_id);
53        debug_struct.field("labels", &self.labels);
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::ListTracesRequest {
62    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
63        let mut debug_struct = f.debug_struct("ListTracesRequest");
64        debug_struct.field("project_id", &self.project_id);
65        debug_struct.field("view", &self.view);
66        debug_struct.field("page_size", &self.page_size);
67        debug_struct.field("page_token", &self.page_token);
68        debug_struct.field("start_time", &self.start_time);
69        debug_struct.field("end_time", &self.end_time);
70        debug_struct.field("filter", &self.filter);
71        debug_struct.field("order_by", &self.order_by);
72        if !self._unknown_fields.is_empty() {
73            debug_struct.field("_unknown_fields", &self._unknown_fields);
74        }
75        debug_struct.finish()
76    }
77}
78
79impl std::fmt::Debug for super::ListTracesResponse {
80    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
81        let mut debug_struct = f.debug_struct("ListTracesResponse");
82        debug_struct.field("traces", &self.traces);
83        debug_struct.field("next_page_token", &self.next_page_token);
84        if !self._unknown_fields.is_empty() {
85            debug_struct.field("_unknown_fields", &self._unknown_fields);
86        }
87        debug_struct.finish()
88    }
89}
90
91impl std::fmt::Debug for super::GetTraceRequest {
92    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
93        let mut debug_struct = f.debug_struct("GetTraceRequest");
94        debug_struct.field("project_id", &self.project_id);
95        debug_struct.field("trace_id", &self.trace_id);
96        if !self._unknown_fields.is_empty() {
97            debug_struct.field("_unknown_fields", &self._unknown_fields);
98        }
99        debug_struct.finish()
100    }
101}
102
103impl std::fmt::Debug for super::PatchTracesRequest {
104    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
105        let mut debug_struct = f.debug_struct("PatchTracesRequest");
106        debug_struct.field("project_id", &self.project_id);
107        debug_struct.field("traces", &self.traces);
108        if !self._unknown_fields.is_empty() {
109            debug_struct.field("_unknown_fields", &self._unknown_fields);
110        }
111        debug_struct.finish()
112    }
113}