google_developers_knowledge_v1/model/
debug.rs1#[allow(unused_imports)]
18use super::*;
19
20impl std::fmt::Debug for super::Document {
21 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
22 let mut debug_struct = f.debug_struct("Document");
23 debug_struct.field("name", &self.name);
24 debug_struct.field("uri", &self.uri);
25 debug_struct.field("content", &self.content);
26 debug_struct.field("description", &self.description);
27 debug_struct.field("data_source", &self.data_source);
28 debug_struct.field("title", &self.title);
29 debug_struct.field("update_time", &self.update_time);
30 debug_struct.field("view", &self.view);
31 debug_struct.field("content_length_bytes", &self.content_length_bytes);
32 if !self._unknown_fields.is_empty() {
33 debug_struct.field("_unknown_fields", &self._unknown_fields);
34 }
35 debug_struct.finish()
36 }
37}
38
39impl std::fmt::Debug for super::SearchDocumentChunksRequest {
40 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
41 let mut debug_struct = f.debug_struct("SearchDocumentChunksRequest");
42 debug_struct.field("query", &self.query);
43 debug_struct.field("page_size", &self.page_size);
44 debug_struct.field("page_token", &self.page_token);
45 debug_struct.field("filter", &self.filter);
46 if !self._unknown_fields.is_empty() {
47 debug_struct.field("_unknown_fields", &self._unknown_fields);
48 }
49 debug_struct.finish()
50 }
51}
52
53impl std::fmt::Debug for super::SearchDocumentChunksResponse {
54 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
55 let mut debug_struct = f.debug_struct("SearchDocumentChunksResponse");
56 debug_struct.field("results", &self.results);
57 debug_struct.field("next_page_token", &self.next_page_token);
58 if !self._unknown_fields.is_empty() {
59 debug_struct.field("_unknown_fields", &self._unknown_fields);
60 }
61 debug_struct.finish()
62 }
63}
64
65impl std::fmt::Debug for super::GetDocumentRequest {
66 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
67 let mut debug_struct = f.debug_struct("GetDocumentRequest");
68 debug_struct.field("name", &self.name);
69 debug_struct.field("view", &self.view);
70 if !self._unknown_fields.is_empty() {
71 debug_struct.field("_unknown_fields", &self._unknown_fields);
72 }
73 debug_struct.finish()
74 }
75}
76
77impl std::fmt::Debug for super::BatchGetDocumentsRequest {
78 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
79 let mut debug_struct = f.debug_struct("BatchGetDocumentsRequest");
80 debug_struct.field("names", &self.names);
81 debug_struct.field("view", &self.view);
82 if !self._unknown_fields.is_empty() {
83 debug_struct.field("_unknown_fields", &self._unknown_fields);
84 }
85 debug_struct.finish()
86 }
87}
88
89impl std::fmt::Debug for super::BatchGetDocumentsResponse {
90 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
91 let mut debug_struct = f.debug_struct("BatchGetDocumentsResponse");
92 debug_struct.field("documents", &self.documents);
93 if !self._unknown_fields.is_empty() {
94 debug_struct.field("_unknown_fields", &self._unknown_fields);
95 }
96 debug_struct.finish()
97 }
98}
99
100impl std::fmt::Debug for super::AnswerQueryRequest {
101 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
102 let mut debug_struct = f.debug_struct("AnswerQueryRequest");
103 debug_struct.field("query", &self.query);
104 if !self._unknown_fields.is_empty() {
105 debug_struct.field("_unknown_fields", &self._unknown_fields);
106 }
107 debug_struct.finish()
108 }
109}
110
111impl std::fmt::Debug for super::AnswerQueryResponse {
112 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
113 let mut debug_struct = f.debug_struct("AnswerQueryResponse");
114 debug_struct.field("answer", &self.answer);
115 if !self._unknown_fields.is_empty() {
116 debug_struct.field("_unknown_fields", &self._unknown_fields);
117 }
118 debug_struct.finish()
119 }
120}
121
122impl std::fmt::Debug for super::Answer {
123 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
124 let mut debug_struct = f.debug_struct("Answer");
125 debug_struct.field("answer_text", &self.answer_text);
126 debug_struct.field("citations", &self.citations);
127 debug_struct.field("references", &self.references);
128 if !self._unknown_fields.is_empty() {
129 debug_struct.field("_unknown_fields", &self._unknown_fields);
130 }
131 debug_struct.finish()
132 }
133}
134
135impl std::fmt::Debug for super::answer::AnswerCitation {
136 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
137 let mut debug_struct = f.debug_struct("AnswerCitation");
138 debug_struct.field("start_index", &self.start_index);
139 debug_struct.field("end_index", &self.end_index);
140 debug_struct.field("sources", &self.sources);
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::answer::CitationSource {
149 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
150 let mut debug_struct = f.debug_struct("CitationSource");
151 debug_struct.field("reference_index", &self.reference_index);
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::answer::AnswerReference {
160 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
161 let mut debug_struct = f.debug_struct("AnswerReference");
162 debug_struct.field("content", &self.content);
163 if !self._unknown_fields.is_empty() {
164 debug_struct.field("_unknown_fields", &self._unknown_fields);
165 }
166 debug_struct.finish()
167 }
168}
169
170impl std::fmt::Debug for super::answer::DocumentReference {
171 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
172 let mut debug_struct = f.debug_struct("DocumentReference");
173 debug_struct.field("document_chunk", &self.document_chunk);
174 if !self._unknown_fields.is_empty() {
175 debug_struct.field("_unknown_fields", &self._unknown_fields);
176 }
177 debug_struct.finish()
178 }
179}
180
181impl std::fmt::Debug for super::DocumentChunk {
182 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
183 let mut debug_struct = f.debug_struct("DocumentChunk");
184 debug_struct.field("parent", &self.parent);
185 debug_struct.field("id", &self.id);
186 debug_struct.field("content", &self.content);
187 debug_struct.field("document", &self.document);
188 if !self._unknown_fields.is_empty() {
189 debug_struct.field("_unknown_fields", &self._unknown_fields);
190 }
191 debug_struct.finish()
192 }
193}