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 debug_struct.field("filter", &self.filter);
105 if !self._unknown_fields.is_empty() {
106 debug_struct.field("_unknown_fields", &self._unknown_fields);
107 }
108 debug_struct.finish()
109 }
110}
111
112impl std::fmt::Debug for super::AnswerQueryResponse {
113 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
114 let mut debug_struct = f.debug_struct("AnswerQueryResponse");
115 debug_struct.field("answer", &self.answer);
116 if !self._unknown_fields.is_empty() {
117 debug_struct.field("_unknown_fields", &self._unknown_fields);
118 }
119 debug_struct.finish()
120 }
121}
122
123impl std::fmt::Debug for super::Answer {
124 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
125 let mut debug_struct = f.debug_struct("Answer");
126 debug_struct.field("answer_text", &self.answer_text);
127 debug_struct.field("citations", &self.citations);
128 debug_struct.field("references", &self.references);
129 if !self._unknown_fields.is_empty() {
130 debug_struct.field("_unknown_fields", &self._unknown_fields);
131 }
132 debug_struct.finish()
133 }
134}
135
136impl std::fmt::Debug for super::answer::AnswerCitation {
137 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
138 let mut debug_struct = f.debug_struct("AnswerCitation");
139 debug_struct.field("start_index", &self.start_index);
140 debug_struct.field("end_index", &self.end_index);
141 debug_struct.field("sources", &self.sources);
142 if !self._unknown_fields.is_empty() {
143 debug_struct.field("_unknown_fields", &self._unknown_fields);
144 }
145 debug_struct.finish()
146 }
147}
148
149impl std::fmt::Debug for super::answer::CitationSource {
150 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
151 let mut debug_struct = f.debug_struct("CitationSource");
152 debug_struct.field("reference_index", &self.reference_index);
153 if !self._unknown_fields.is_empty() {
154 debug_struct.field("_unknown_fields", &self._unknown_fields);
155 }
156 debug_struct.finish()
157 }
158}
159
160impl std::fmt::Debug for super::answer::AnswerReference {
161 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
162 let mut debug_struct = f.debug_struct("AnswerReference");
163 debug_struct.field("content", &self.content);
164 if !self._unknown_fields.is_empty() {
165 debug_struct.field("_unknown_fields", &self._unknown_fields);
166 }
167 debug_struct.finish()
168 }
169}
170
171impl std::fmt::Debug for super::answer::DocumentReference {
172 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
173 let mut debug_struct = f.debug_struct("DocumentReference");
174 debug_struct.field("document_chunk", &self.document_chunk);
175 if !self._unknown_fields.is_empty() {
176 debug_struct.field("_unknown_fields", &self._unknown_fields);
177 }
178 debug_struct.finish()
179 }
180}
181
182impl std::fmt::Debug for super::DocumentChunk {
183 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
184 let mut debug_struct = f.debug_struct("DocumentChunk");
185 debug_struct.field("parent", &self.parent);
186 debug_struct.field("id", &self.id);
187 debug_struct.field("content", &self.content);
188 debug_struct.field("document", &self.document);
189 debug_struct.field("relevance_score", &self.relevance_score);
190 if !self._unknown_fields.is_empty() {
191 debug_struct.field("_unknown_fields", &self._unknown_fields);
192 }
193 debug_struct.finish()
194 }
195}