nebula_fbthrift_meta_v1/
types.rs

1// @generated by Thrift for src/interface/meta.thrift
2// This file is probably not the place you want to edit!
3
4//! Thrift type definitions for `meta`.
5
6#![allow(clippy::redundant_closure)]
7
8
9#[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash, Debug)]
10pub enum ID {
11    space_id(common::types::GraphSpaceID),
12    tag_id(common::types::TagID),
13    edge_type(common::types::EdgeType),
14    index_id(common::types::IndexID),
15    cluster_id(common::types::ClusterID),
16    UnknownField(::std::primitive::i32),
17}
18
19#[derive(Clone, PartialEq)]
20pub struct IdName {
21    pub id: crate::types::ID,
22    pub name: ::std::string::String,
23    // This field forces `..Default::default()` when instantiating this
24    // struct, to make code future-proof against new fields added later to
25    // the definition in Thrift. If you don't want this, add the annotation
26    // `(rust.exhaustive)` to the Thrift struct to eliminate this field.
27    #[doc(hidden)]
28    pub _dot_dot_Default_default: self::dot_dot::OtherFields,
29}
30
31#[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
32pub struct SpaceProperties {
33    pub space_name: ::std::string::String,
34    pub partition_num: ::std::primitive::i32,
35    pub replica_factor: ::std::primitive::i32,
36    pub charset_name: ::std::string::String,
37    pub collate_name: ::std::string::String,
38    // This field forces `..Default::default()` when instantiating this
39    // struct, to make code future-proof against new fields added later to
40    // the definition in Thrift. If you don't want this, add the annotation
41    // `(rust.exhaustive)` to the Thrift struct to eliminate this field.
42    #[doc(hidden)]
43    pub _dot_dot_Default_default: self::dot_dot::OtherFields,
44}
45
46#[derive(Clone, PartialEq)]
47pub struct SpaceItem {
48    pub space_id: common::types::GraphSpaceID,
49    pub properties: crate::types::SpaceProperties,
50    // This field forces `..Default::default()` when instantiating this
51    // struct, to make code future-proof against new fields added later to
52    // the definition in Thrift. If you don't want this, add the annotation
53    // `(rust.exhaustive)` to the Thrift struct to eliminate this field.
54    #[doc(hidden)]
55    pub _dot_dot_Default_default: self::dot_dot::OtherFields,
56}
57
58#[derive(Clone, PartialEq)]
59pub struct TagItem {
60    pub tag_id: common::types::TagID,
61    pub tag_name: ::std::string::String,
62    pub version: common::types::SchemaVer,
63    pub schema: common::types::Schema,
64    // This field forces `..Default::default()` when instantiating this
65    // struct, to make code future-proof against new fields added later to
66    // the definition in Thrift. If you don't want this, add the annotation
67    // `(rust.exhaustive)` to the Thrift struct to eliminate this field.
68    #[doc(hidden)]
69    pub _dot_dot_Default_default: self::dot_dot::OtherFields,
70}
71
72#[derive(Clone, PartialEq)]
73pub struct AlterSchemaItem {
74    pub op: crate::types::AlterSchemaOp,
75    pub schema: common::types::Schema,
76    // This field forces `..Default::default()` when instantiating this
77    // struct, to make code future-proof against new fields added later to
78    // the definition in Thrift. If you don't want this, add the annotation
79    // `(rust.exhaustive)` to the Thrift struct to eliminate this field.
80    #[doc(hidden)]
81    pub _dot_dot_Default_default: self::dot_dot::OtherFields,
82}
83
84#[derive(Clone, PartialEq)]
85pub struct EdgeItem {
86    pub edge_type: common::types::EdgeType,
87    pub edge_name: ::std::string::String,
88    pub version: common::types::SchemaVer,
89    pub schema: common::types::Schema,
90    // This field forces `..Default::default()` when instantiating this
91    // struct, to make code future-proof against new fields added later to
92    // the definition in Thrift. If you don't want this, add the annotation
93    // `(rust.exhaustive)` to the Thrift struct to eliminate this field.
94    #[doc(hidden)]
95    pub _dot_dot_Default_default: self::dot_dot::OtherFields,
96}
97
98#[derive(Clone, PartialEq)]
99pub struct HostItem {
100    pub hostAddr: common::types::HostAddr,
101    pub status: crate::types::HostStatus,
102    pub leader_parts: ::std::collections::BTreeMap<::std::string::String, ::std::vec::Vec<common::types::PartitionID>>,
103    pub all_parts: ::std::collections::BTreeMap<::std::string::String, ::std::vec::Vec<common::types::PartitionID>>,
104    // This field forces `..Default::default()` when instantiating this
105    // struct, to make code future-proof against new fields added later to
106    // the definition in Thrift. If you don't want this, add the annotation
107    // `(rust.exhaustive)` to the Thrift struct to eliminate this field.
108    #[doc(hidden)]
109    pub _dot_dot_Default_default: self::dot_dot::OtherFields,
110}
111
112#[derive(Clone, PartialEq)]
113pub struct ExecResp {
114    pub code: crate::types::ErrorCode,
115    pub id: crate::types::ID,
116    pub leader: common::types::HostAddr,
117    // This field forces `..Default::default()` when instantiating this
118    // struct, to make code future-proof against new fields added later to
119    // the definition in Thrift. If you don't want this, add the annotation
120    // `(rust.exhaustive)` to the Thrift struct to eliminate this field.
121    #[doc(hidden)]
122    pub _dot_dot_Default_default: self::dot_dot::OtherFields,
123}
124
125#[derive(Clone, PartialEq)]
126pub struct CreateSpaceReq {
127    pub properties: crate::types::SpaceProperties,
128    pub if_not_exists: ::std::primitive::bool,
129    // This field forces `..Default::default()` when instantiating this
130    // struct, to make code future-proof against new fields added later to
131    // the definition in Thrift. If you don't want this, add the annotation
132    // `(rust.exhaustive)` to the Thrift struct to eliminate this field.
133    #[doc(hidden)]
134    pub _dot_dot_Default_default: self::dot_dot::OtherFields,
135}
136
137#[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
138pub struct DropSpaceReq {
139    pub space_name: ::std::string::String,
140    pub if_exists: ::std::primitive::bool,
141    // This field forces `..Default::default()` when instantiating this
142    // struct, to make code future-proof against new fields added later to
143    // the definition in Thrift. If you don't want this, add the annotation
144    // `(rust.exhaustive)` to the Thrift struct to eliminate this field.
145    #[doc(hidden)]
146    pub _dot_dot_Default_default: self::dot_dot::OtherFields,
147}
148
149#[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
150pub struct AdminJobReq {
151    pub op: crate::types::AdminJobOp,
152    pub paras: ::std::vec::Vec<::std::string::String>,
153    // This field forces `..Default::default()` when instantiating this
154    // struct, to make code future-proof against new fields added later to
155    // the definition in Thrift. If you don't want this, add the annotation
156    // `(rust.exhaustive)` to the Thrift struct to eliminate this field.
157    #[doc(hidden)]
158    pub _dot_dot_Default_default: self::dot_dot::OtherFields,
159}
160
161#[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
162pub struct JobDesc {
163    pub id: ::std::primitive::i32,
164    pub cmd: ::std::string::String,
165    pub paras: ::std::vec::Vec<::std::string::String>,
166    pub status: crate::types::JobStatus,
167    pub start_time: ::std::primitive::i64,
168    pub stop_time: ::std::primitive::i64,
169    // This field forces `..Default::default()` when instantiating this
170    // struct, to make code future-proof against new fields added later to
171    // the definition in Thrift. If you don't want this, add the annotation
172    // `(rust.exhaustive)` to the Thrift struct to eliminate this field.
173    #[doc(hidden)]
174    pub _dot_dot_Default_default: self::dot_dot::OtherFields,
175}
176
177#[derive(Clone, PartialEq)]
178pub struct TaskDesc {
179    pub task_id: ::std::primitive::i32,
180    pub host: common::types::HostAddr,
181    pub status: crate::types::JobStatus,
182    pub start_time: ::std::primitive::i64,
183    pub stop_time: ::std::primitive::i64,
184    pub job_id: ::std::primitive::i32,
185    // This field forces `..Default::default()` when instantiating this
186    // struct, to make code future-proof against new fields added later to
187    // the definition in Thrift. If you don't want this, add the annotation
188    // `(rust.exhaustive)` to the Thrift struct to eliminate this field.
189    #[doc(hidden)]
190    pub _dot_dot_Default_default: self::dot_dot::OtherFields,
191}
192
193#[derive(Clone, PartialEq)]
194pub struct AdminJobResult {
195    pub job_id: ::std::option::Option<::std::primitive::i32>,
196    pub job_desc: ::std::option::Option<::std::vec::Vec<crate::types::JobDesc>>,
197    pub task_desc: ::std::option::Option<::std::vec::Vec<crate::types::TaskDesc>>,
198    pub recovered_job_num: ::std::option::Option<::std::primitive::i32>,
199    // This field forces `..Default::default()` when instantiating this
200    // struct, to make code future-proof against new fields added later to
201    // the definition in Thrift. If you don't want this, add the annotation
202    // `(rust.exhaustive)` to the Thrift struct to eliminate this field.
203    #[doc(hidden)]
204    pub _dot_dot_Default_default: self::dot_dot::OtherFields,
205}
206
207#[derive(Clone, PartialEq)]
208pub struct AdminJobResp {
209    pub code: crate::types::ErrorCode,
210    pub leader: common::types::HostAddr,
211    pub result: crate::types::AdminJobResult,
212    // This field forces `..Default::default()` when instantiating this
213    // struct, to make code future-proof against new fields added later to
214    // the definition in Thrift. If you don't want this, add the annotation
215    // `(rust.exhaustive)` to the Thrift struct to eliminate this field.
216    #[doc(hidden)]
217    pub _dot_dot_Default_default: self::dot_dot::OtherFields,
218}
219
220#[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
221pub struct ListSpacesReq {
222    // This field forces `..Default::default()` when instantiating this
223    // struct, to make code future-proof against new fields added later to
224    // the definition in Thrift. If you don't want this, add the annotation
225    // `(rust.exhaustive)` to the Thrift struct to eliminate this field.
226    #[doc(hidden)]
227    pub _dot_dot_Default_default: self::dot_dot::OtherFields,
228}
229
230#[derive(Clone, PartialEq)]
231pub struct ListSpacesResp {
232    pub code: crate::types::ErrorCode,
233    pub leader: common::types::HostAddr,
234    pub spaces: ::std::vec::Vec<crate::types::IdName>,
235    // This field forces `..Default::default()` when instantiating this
236    // struct, to make code future-proof against new fields added later to
237    // the definition in Thrift. If you don't want this, add the annotation
238    // `(rust.exhaustive)` to the Thrift struct to eliminate this field.
239    #[doc(hidden)]
240    pub _dot_dot_Default_default: self::dot_dot::OtherFields,
241}
242
243#[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
244pub struct GetSpaceReq {
245    pub space_name: ::std::string::String,
246    // This field forces `..Default::default()` when instantiating this
247    // struct, to make code future-proof against new fields added later to
248    // the definition in Thrift. If you don't want this, add the annotation
249    // `(rust.exhaustive)` to the Thrift struct to eliminate this field.
250    #[doc(hidden)]
251    pub _dot_dot_Default_default: self::dot_dot::OtherFields,
252}
253
254#[derive(Clone, PartialEq)]
255pub struct GetSpaceResp {
256    pub code: crate::types::ErrorCode,
257    pub leader: common::types::HostAddr,
258    pub item: crate::types::SpaceItem,
259    // This field forces `..Default::default()` when instantiating this
260    // struct, to make code future-proof against new fields added later to
261    // the definition in Thrift. If you don't want this, add the annotation
262    // `(rust.exhaustive)` to the Thrift struct to eliminate this field.
263    #[doc(hidden)]
264    pub _dot_dot_Default_default: self::dot_dot::OtherFields,
265}
266
267#[derive(Clone, PartialEq)]
268pub struct CreateTagReq {
269    pub space_id: common::types::GraphSpaceID,
270    pub tag_name: ::std::string::String,
271    pub schema: common::types::Schema,
272    pub if_not_exists: ::std::primitive::bool,
273    // This field forces `..Default::default()` when instantiating this
274    // struct, to make code future-proof against new fields added later to
275    // the definition in Thrift. If you don't want this, add the annotation
276    // `(rust.exhaustive)` to the Thrift struct to eliminate this field.
277    #[doc(hidden)]
278    pub _dot_dot_Default_default: self::dot_dot::OtherFields,
279}
280
281#[derive(Clone, PartialEq)]
282pub struct AlterTagReq {
283    pub space_id: common::types::GraphSpaceID,
284    pub tag_name: ::std::string::String,
285    pub tag_items: ::std::vec::Vec<crate::types::AlterSchemaItem>,
286    pub schema_prop: common::types::SchemaProp,
287    // This field forces `..Default::default()` when instantiating this
288    // struct, to make code future-proof against new fields added later to
289    // the definition in Thrift. If you don't want this, add the annotation
290    // `(rust.exhaustive)` to the Thrift struct to eliminate this field.
291    #[doc(hidden)]
292    pub _dot_dot_Default_default: self::dot_dot::OtherFields,
293}
294
295#[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
296pub struct DropTagReq {
297    pub space_id: common::types::GraphSpaceID,
298    pub tag_name: ::std::string::String,
299    pub if_exists: ::std::primitive::bool,
300    // This field forces `..Default::default()` when instantiating this
301    // struct, to make code future-proof against new fields added later to
302    // the definition in Thrift. If you don't want this, add the annotation
303    // `(rust.exhaustive)` to the Thrift struct to eliminate this field.
304    #[doc(hidden)]
305    pub _dot_dot_Default_default: self::dot_dot::OtherFields,
306}
307
308#[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
309pub struct ListTagsReq {
310    pub space_id: common::types::GraphSpaceID,
311    // This field forces `..Default::default()` when instantiating this
312    // struct, to make code future-proof against new fields added later to
313    // the definition in Thrift. If you don't want this, add the annotation
314    // `(rust.exhaustive)` to the Thrift struct to eliminate this field.
315    #[doc(hidden)]
316    pub _dot_dot_Default_default: self::dot_dot::OtherFields,
317}
318
319#[derive(Clone, PartialEq)]
320pub struct ListTagsResp {
321    pub code: crate::types::ErrorCode,
322    pub leader: common::types::HostAddr,
323    pub tags: ::std::vec::Vec<crate::types::TagItem>,
324    // This field forces `..Default::default()` when instantiating this
325    // struct, to make code future-proof against new fields added later to
326    // the definition in Thrift. If you don't want this, add the annotation
327    // `(rust.exhaustive)` to the Thrift struct to eliminate this field.
328    #[doc(hidden)]
329    pub _dot_dot_Default_default: self::dot_dot::OtherFields,
330}
331
332#[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
333pub struct GetTagReq {
334    pub space_id: common::types::GraphSpaceID,
335    pub tag_name: ::std::string::String,
336    pub version: common::types::SchemaVer,
337    // This field forces `..Default::default()` when instantiating this
338    // struct, to make code future-proof against new fields added later to
339    // the definition in Thrift. If you don't want this, add the annotation
340    // `(rust.exhaustive)` to the Thrift struct to eliminate this field.
341    #[doc(hidden)]
342    pub _dot_dot_Default_default: self::dot_dot::OtherFields,
343}
344
345#[derive(Clone, PartialEq)]
346pub struct GetTagResp {
347    pub code: crate::types::ErrorCode,
348    pub leader: common::types::HostAddr,
349    pub schema: common::types::Schema,
350    // This field forces `..Default::default()` when instantiating this
351    // struct, to make code future-proof against new fields added later to
352    // the definition in Thrift. If you don't want this, add the annotation
353    // `(rust.exhaustive)` to the Thrift struct to eliminate this field.
354    #[doc(hidden)]
355    pub _dot_dot_Default_default: self::dot_dot::OtherFields,
356}
357
358#[derive(Clone, PartialEq)]
359pub struct CreateEdgeReq {
360    pub space_id: common::types::GraphSpaceID,
361    pub edge_name: ::std::string::String,
362    pub schema: common::types::Schema,
363    pub if_not_exists: ::std::primitive::bool,
364    // This field forces `..Default::default()` when instantiating this
365    // struct, to make code future-proof against new fields added later to
366    // the definition in Thrift. If you don't want this, add the annotation
367    // `(rust.exhaustive)` to the Thrift struct to eliminate this field.
368    #[doc(hidden)]
369    pub _dot_dot_Default_default: self::dot_dot::OtherFields,
370}
371
372#[derive(Clone, PartialEq)]
373pub struct AlterEdgeReq {
374    pub space_id: common::types::GraphSpaceID,
375    pub edge_name: ::std::string::String,
376    pub edge_items: ::std::vec::Vec<crate::types::AlterSchemaItem>,
377    pub schema_prop: common::types::SchemaProp,
378    // This field forces `..Default::default()` when instantiating this
379    // struct, to make code future-proof against new fields added later to
380    // the definition in Thrift. If you don't want this, add the annotation
381    // `(rust.exhaustive)` to the Thrift struct to eliminate this field.
382    #[doc(hidden)]
383    pub _dot_dot_Default_default: self::dot_dot::OtherFields,
384}
385
386#[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
387pub struct GetEdgeReq {
388    pub space_id: common::types::GraphSpaceID,
389    pub edge_name: ::std::string::String,
390    pub version: common::types::SchemaVer,
391    // This field forces `..Default::default()` when instantiating this
392    // struct, to make code future-proof against new fields added later to
393    // the definition in Thrift. If you don't want this, add the annotation
394    // `(rust.exhaustive)` to the Thrift struct to eliminate this field.
395    #[doc(hidden)]
396    pub _dot_dot_Default_default: self::dot_dot::OtherFields,
397}
398
399#[derive(Clone, PartialEq)]
400pub struct GetEdgeResp {
401    pub code: crate::types::ErrorCode,
402    pub leader: common::types::HostAddr,
403    pub schema: common::types::Schema,
404    // This field forces `..Default::default()` when instantiating this
405    // struct, to make code future-proof against new fields added later to
406    // the definition in Thrift. If you don't want this, add the annotation
407    // `(rust.exhaustive)` to the Thrift struct to eliminate this field.
408    #[doc(hidden)]
409    pub _dot_dot_Default_default: self::dot_dot::OtherFields,
410}
411
412#[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
413pub struct DropEdgeReq {
414    pub space_id: common::types::GraphSpaceID,
415    pub edge_name: ::std::string::String,
416    pub if_exists: ::std::primitive::bool,
417    // This field forces `..Default::default()` when instantiating this
418    // struct, to make code future-proof against new fields added later to
419    // the definition in Thrift. If you don't want this, add the annotation
420    // `(rust.exhaustive)` to the Thrift struct to eliminate this field.
421    #[doc(hidden)]
422    pub _dot_dot_Default_default: self::dot_dot::OtherFields,
423}
424
425#[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
426pub struct ListEdgesReq {
427    pub space_id: common::types::GraphSpaceID,
428    // This field forces `..Default::default()` when instantiating this
429    // struct, to make code future-proof against new fields added later to
430    // the definition in Thrift. If you don't want this, add the annotation
431    // `(rust.exhaustive)` to the Thrift struct to eliminate this field.
432    #[doc(hidden)]
433    pub _dot_dot_Default_default: self::dot_dot::OtherFields,
434}
435
436#[derive(Clone, PartialEq)]
437pub struct ListEdgesResp {
438    pub code: crate::types::ErrorCode,
439    pub leader: common::types::HostAddr,
440    pub edges: ::std::vec::Vec<crate::types::EdgeItem>,
441    // This field forces `..Default::default()` when instantiating this
442    // struct, to make code future-proof against new fields added later to
443    // the definition in Thrift. If you don't want this, add the annotation
444    // `(rust.exhaustive)` to the Thrift struct to eliminate this field.
445    #[doc(hidden)]
446    pub _dot_dot_Default_default: self::dot_dot::OtherFields,
447}
448
449#[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
450pub struct ListHostsReq {
451    // This field forces `..Default::default()` when instantiating this
452    // struct, to make code future-proof against new fields added later to
453    // the definition in Thrift. If you don't want this, add the annotation
454    // `(rust.exhaustive)` to the Thrift struct to eliminate this field.
455    #[doc(hidden)]
456    pub _dot_dot_Default_default: self::dot_dot::OtherFields,
457}
458
459#[derive(Clone, PartialEq)]
460pub struct ListHostsResp {
461    pub code: crate::types::ErrorCode,
462    pub leader: common::types::HostAddr,
463    pub hosts: ::std::vec::Vec<crate::types::HostItem>,
464    // This field forces `..Default::default()` when instantiating this
465    // struct, to make code future-proof against new fields added later to
466    // the definition in Thrift. If you don't want this, add the annotation
467    // `(rust.exhaustive)` to the Thrift struct to eliminate this field.
468    #[doc(hidden)]
469    pub _dot_dot_Default_default: self::dot_dot::OtherFields,
470}
471
472#[derive(Clone, PartialEq)]
473pub struct PartItem {
474    pub part_id: common::types::PartitionID,
475    pub leader: ::std::option::Option<common::types::HostAddr>,
476    pub peers: ::std::vec::Vec<common::types::HostAddr>,
477    pub losts: ::std::vec::Vec<common::types::HostAddr>,
478    // This field forces `..Default::default()` when instantiating this
479    // struct, to make code future-proof against new fields added later to
480    // the definition in Thrift. If you don't want this, add the annotation
481    // `(rust.exhaustive)` to the Thrift struct to eliminate this field.
482    #[doc(hidden)]
483    pub _dot_dot_Default_default: self::dot_dot::OtherFields,
484}
485
486#[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
487pub struct ListPartsReq {
488    pub space_id: common::types::GraphSpaceID,
489    pub part_ids: ::std::vec::Vec<common::types::PartitionID>,
490    // This field forces `..Default::default()` when instantiating this
491    // struct, to make code future-proof against new fields added later to
492    // the definition in Thrift. If you don't want this, add the annotation
493    // `(rust.exhaustive)` to the Thrift struct to eliminate this field.
494    #[doc(hidden)]
495    pub _dot_dot_Default_default: self::dot_dot::OtherFields,
496}
497
498#[derive(Clone, PartialEq)]
499pub struct ListPartsResp {
500    pub code: crate::types::ErrorCode,
501    pub leader: common::types::HostAddr,
502    pub parts: ::std::vec::Vec<crate::types::PartItem>,
503    // This field forces `..Default::default()` when instantiating this
504    // struct, to make code future-proof against new fields added later to
505    // the definition in Thrift. If you don't want this, add the annotation
506    // `(rust.exhaustive)` to the Thrift struct to eliminate this field.
507    #[doc(hidden)]
508    pub _dot_dot_Default_default: self::dot_dot::OtherFields,
509}
510
511#[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
512pub struct GetPartsAllocReq {
513    pub space_id: common::types::GraphSpaceID,
514    // This field forces `..Default::default()` when instantiating this
515    // struct, to make code future-proof against new fields added later to
516    // the definition in Thrift. If you don't want this, add the annotation
517    // `(rust.exhaustive)` to the Thrift struct to eliminate this field.
518    #[doc(hidden)]
519    pub _dot_dot_Default_default: self::dot_dot::OtherFields,
520}
521
522#[derive(Clone, PartialEq)]
523pub struct GetPartsAllocResp {
524    pub code: crate::types::ErrorCode,
525    pub leader: common::types::HostAddr,
526    pub parts: ::std::collections::BTreeMap<common::types::PartitionID, ::std::vec::Vec<common::types::HostAddr>>,
527    // This field forces `..Default::default()` when instantiating this
528    // struct, to make code future-proof against new fields added later to
529    // the definition in Thrift. If you don't want this, add the annotation
530    // `(rust.exhaustive)` to the Thrift struct to eliminate this field.
531    #[doc(hidden)]
532    pub _dot_dot_Default_default: self::dot_dot::OtherFields,
533}
534
535#[derive(Clone, PartialEq)]
536pub struct MultiPutReq {
537    pub segment: ::std::string::String,
538    pub pairs: ::std::vec::Vec<common::types::Pair>,
539    // This field forces `..Default::default()` when instantiating this
540    // struct, to make code future-proof against new fields added later to
541    // the definition in Thrift. If you don't want this, add the annotation
542    // `(rust.exhaustive)` to the Thrift struct to eliminate this field.
543    #[doc(hidden)]
544    pub _dot_dot_Default_default: self::dot_dot::OtherFields,
545}
546
547#[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
548pub struct GetReq {
549    pub segment: ::std::string::String,
550    pub key: ::std::string::String,
551    // This field forces `..Default::default()` when instantiating this
552    // struct, to make code future-proof against new fields added later to
553    // the definition in Thrift. If you don't want this, add the annotation
554    // `(rust.exhaustive)` to the Thrift struct to eliminate this field.
555    #[doc(hidden)]
556    pub _dot_dot_Default_default: self::dot_dot::OtherFields,
557}
558
559#[derive(Clone, PartialEq)]
560pub struct GetResp {
561    pub code: crate::types::ErrorCode,
562    pub leader: common::types::HostAddr,
563    pub value: ::std::string::String,
564    // This field forces `..Default::default()` when instantiating this
565    // struct, to make code future-proof against new fields added later to
566    // the definition in Thrift. If you don't want this, add the annotation
567    // `(rust.exhaustive)` to the Thrift struct to eliminate this field.
568    #[doc(hidden)]
569    pub _dot_dot_Default_default: self::dot_dot::OtherFields,
570}
571
572#[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
573pub struct MultiGetReq {
574    pub segment: ::std::string::String,
575    pub keys: ::std::vec::Vec<::std::string::String>,
576    // This field forces `..Default::default()` when instantiating this
577    // struct, to make code future-proof against new fields added later to
578    // the definition in Thrift. If you don't want this, add the annotation
579    // `(rust.exhaustive)` to the Thrift struct to eliminate this field.
580    #[doc(hidden)]
581    pub _dot_dot_Default_default: self::dot_dot::OtherFields,
582}
583
584#[derive(Clone, PartialEq)]
585pub struct MultiGetResp {
586    pub code: crate::types::ErrorCode,
587    pub leader: common::types::HostAddr,
588    pub values: ::std::vec::Vec<::std::string::String>,
589    // This field forces `..Default::default()` when instantiating this
590    // struct, to make code future-proof against new fields added later to
591    // the definition in Thrift. If you don't want this, add the annotation
592    // `(rust.exhaustive)` to the Thrift struct to eliminate this field.
593    #[doc(hidden)]
594    pub _dot_dot_Default_default: self::dot_dot::OtherFields,
595}
596
597#[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
598pub struct RemoveReq {
599    pub segment: ::std::string::String,
600    pub key: ::std::string::String,
601    // This field forces `..Default::default()` when instantiating this
602    // struct, to make code future-proof against new fields added later to
603    // the definition in Thrift. If you don't want this, add the annotation
604    // `(rust.exhaustive)` to the Thrift struct to eliminate this field.
605    #[doc(hidden)]
606    pub _dot_dot_Default_default: self::dot_dot::OtherFields,
607}
608
609#[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
610pub struct RemoveRangeReq {
611    pub segment: ::std::string::String,
612    pub start: ::std::string::String,
613    pub end: ::std::string::String,
614    // This field forces `..Default::default()` when instantiating this
615    // struct, to make code future-proof against new fields added later to
616    // the definition in Thrift. If you don't want this, add the annotation
617    // `(rust.exhaustive)` to the Thrift struct to eliminate this field.
618    #[doc(hidden)]
619    pub _dot_dot_Default_default: self::dot_dot::OtherFields,
620}
621
622#[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
623pub struct ScanReq {
624    pub segment: ::std::string::String,
625    pub start: ::std::string::String,
626    pub end: ::std::string::String,
627    // This field forces `..Default::default()` when instantiating this
628    // struct, to make code future-proof against new fields added later to
629    // the definition in Thrift. If you don't want this, add the annotation
630    // `(rust.exhaustive)` to the Thrift struct to eliminate this field.
631    #[doc(hidden)]
632    pub _dot_dot_Default_default: self::dot_dot::OtherFields,
633}
634
635#[derive(Clone, PartialEq)]
636pub struct ScanResp {
637    pub code: crate::types::ErrorCode,
638    pub leader: common::types::HostAddr,
639    pub values: ::std::vec::Vec<::std::string::String>,
640    // This field forces `..Default::default()` when instantiating this
641    // struct, to make code future-proof against new fields added later to
642    // the definition in Thrift. If you don't want this, add the annotation
643    // `(rust.exhaustive)` to the Thrift struct to eliminate this field.
644    #[doc(hidden)]
645    pub _dot_dot_Default_default: self::dot_dot::OtherFields,
646}
647
648#[derive(Clone, PartialEq)]
649pub struct HBResp {
650    pub code: crate::types::ErrorCode,
651    pub leader: common::types::HostAddr,
652    pub cluster_id: common::types::ClusterID,
653    pub last_update_time_in_ms: ::std::primitive::i64,
654    // This field forces `..Default::default()` when instantiating this
655    // struct, to make code future-proof against new fields added later to
656    // the definition in Thrift. If you don't want this, add the annotation
657    // `(rust.exhaustive)` to the Thrift struct to eliminate this field.
658    #[doc(hidden)]
659    pub _dot_dot_Default_default: self::dot_dot::OtherFields,
660}
661
662#[derive(Clone, PartialEq)]
663pub struct HBReq {
664    pub in_storaged: ::std::primitive::bool,
665    pub host: common::types::HostAddr,
666    pub cluster_id: common::types::ClusterID,
667    pub leader_partIds: ::std::option::Option<::std::collections::BTreeMap<common::types::GraphSpaceID, ::std::vec::Vec<common::types::PartitionID>>>,
668    // This field forces `..Default::default()` when instantiating this
669    // struct, to make code future-proof against new fields added later to
670    // the definition in Thrift. If you don't want this, add the annotation
671    // `(rust.exhaustive)` to the Thrift struct to eliminate this field.
672    #[doc(hidden)]
673    pub _dot_dot_Default_default: self::dot_dot::OtherFields,
674}
675
676#[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
677pub struct CreateTagIndexReq {
678    pub space_id: common::types::GraphSpaceID,
679    pub index_name: ::std::string::String,
680    pub tag_name: ::std::string::String,
681    pub fields: ::std::vec::Vec<::std::string::String>,
682    pub if_not_exists: ::std::primitive::bool,
683    // This field forces `..Default::default()` when instantiating this
684    // struct, to make code future-proof against new fields added later to
685    // the definition in Thrift. If you don't want this, add the annotation
686    // `(rust.exhaustive)` to the Thrift struct to eliminate this field.
687    #[doc(hidden)]
688    pub _dot_dot_Default_default: self::dot_dot::OtherFields,
689}
690
691#[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
692pub struct DropTagIndexReq {
693    pub space_id: common::types::GraphSpaceID,
694    pub index_name: ::std::string::String,
695    pub if_exists: ::std::primitive::bool,
696    // This field forces `..Default::default()` when instantiating this
697    // struct, to make code future-proof against new fields added later to
698    // the definition in Thrift. If you don't want this, add the annotation
699    // `(rust.exhaustive)` to the Thrift struct to eliminate this field.
700    #[doc(hidden)]
701    pub _dot_dot_Default_default: self::dot_dot::OtherFields,
702}
703
704#[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
705pub struct GetTagIndexReq {
706    pub space_id: common::types::GraphSpaceID,
707    pub index_name: ::std::string::String,
708    // This field forces `..Default::default()` when instantiating this
709    // struct, to make code future-proof against new fields added later to
710    // the definition in Thrift. If you don't want this, add the annotation
711    // `(rust.exhaustive)` to the Thrift struct to eliminate this field.
712    #[doc(hidden)]
713    pub _dot_dot_Default_default: self::dot_dot::OtherFields,
714}
715
716#[derive(Clone, PartialEq)]
717pub struct GetTagIndexResp {
718    pub code: crate::types::ErrorCode,
719    pub leader: common::types::HostAddr,
720    pub item: common::types::IndexItem,
721    // This field forces `..Default::default()` when instantiating this
722    // struct, to make code future-proof against new fields added later to
723    // the definition in Thrift. If you don't want this, add the annotation
724    // `(rust.exhaustive)` to the Thrift struct to eliminate this field.
725    #[doc(hidden)]
726    pub _dot_dot_Default_default: self::dot_dot::OtherFields,
727}
728
729#[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
730pub struct ListTagIndexesReq {
731    pub space_id: common::types::GraphSpaceID,
732    // This field forces `..Default::default()` when instantiating this
733    // struct, to make code future-proof against new fields added later to
734    // the definition in Thrift. If you don't want this, add the annotation
735    // `(rust.exhaustive)` to the Thrift struct to eliminate this field.
736    #[doc(hidden)]
737    pub _dot_dot_Default_default: self::dot_dot::OtherFields,
738}
739
740#[derive(Clone, PartialEq)]
741pub struct ListTagIndexesResp {
742    pub code: crate::types::ErrorCode,
743    pub leader: common::types::HostAddr,
744    pub items: ::std::vec::Vec<common::types::IndexItem>,
745    // This field forces `..Default::default()` when instantiating this
746    // struct, to make code future-proof against new fields added later to
747    // the definition in Thrift. If you don't want this, add the annotation
748    // `(rust.exhaustive)` to the Thrift struct to eliminate this field.
749    #[doc(hidden)]
750    pub _dot_dot_Default_default: self::dot_dot::OtherFields,
751}
752
753#[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
754pub struct CreateEdgeIndexReq {
755    pub space_id: common::types::GraphSpaceID,
756    pub index_name: ::std::string::String,
757    pub edge_name: ::std::string::String,
758    pub fields: ::std::vec::Vec<::std::string::String>,
759    pub if_not_exists: ::std::primitive::bool,
760    // This field forces `..Default::default()` when instantiating this
761    // struct, to make code future-proof against new fields added later to
762    // the definition in Thrift. If you don't want this, add the annotation
763    // `(rust.exhaustive)` to the Thrift struct to eliminate this field.
764    #[doc(hidden)]
765    pub _dot_dot_Default_default: self::dot_dot::OtherFields,
766}
767
768#[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
769pub struct DropEdgeIndexReq {
770    pub space_id: common::types::GraphSpaceID,
771    pub index_name: ::std::string::String,
772    pub if_exists: ::std::primitive::bool,
773    // This field forces `..Default::default()` when instantiating this
774    // struct, to make code future-proof against new fields added later to
775    // the definition in Thrift. If you don't want this, add the annotation
776    // `(rust.exhaustive)` to the Thrift struct to eliminate this field.
777    #[doc(hidden)]
778    pub _dot_dot_Default_default: self::dot_dot::OtherFields,
779}
780
781#[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
782pub struct GetEdgeIndexReq {
783    pub space_id: common::types::GraphSpaceID,
784    pub index_name: ::std::string::String,
785    // This field forces `..Default::default()` when instantiating this
786    // struct, to make code future-proof against new fields added later to
787    // the definition in Thrift. If you don't want this, add the annotation
788    // `(rust.exhaustive)` to the Thrift struct to eliminate this field.
789    #[doc(hidden)]
790    pub _dot_dot_Default_default: self::dot_dot::OtherFields,
791}
792
793#[derive(Clone, PartialEq)]
794pub struct GetEdgeIndexResp {
795    pub code: crate::types::ErrorCode,
796    pub leader: common::types::HostAddr,
797    pub item: common::types::IndexItem,
798    // This field forces `..Default::default()` when instantiating this
799    // struct, to make code future-proof against new fields added later to
800    // the definition in Thrift. If you don't want this, add the annotation
801    // `(rust.exhaustive)` to the Thrift struct to eliminate this field.
802    #[doc(hidden)]
803    pub _dot_dot_Default_default: self::dot_dot::OtherFields,
804}
805
806#[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
807pub struct ListEdgeIndexesReq {
808    pub space_id: common::types::GraphSpaceID,
809    // This field forces `..Default::default()` when instantiating this
810    // struct, to make code future-proof against new fields added later to
811    // the definition in Thrift. If you don't want this, add the annotation
812    // `(rust.exhaustive)` to the Thrift struct to eliminate this field.
813    #[doc(hidden)]
814    pub _dot_dot_Default_default: self::dot_dot::OtherFields,
815}
816
817#[derive(Clone, PartialEq)]
818pub struct ListEdgeIndexesResp {
819    pub code: crate::types::ErrorCode,
820    pub leader: common::types::HostAddr,
821    pub items: ::std::vec::Vec<common::types::IndexItem>,
822    // This field forces `..Default::default()` when instantiating this
823    // struct, to make code future-proof against new fields added later to
824    // the definition in Thrift. If you don't want this, add the annotation
825    // `(rust.exhaustive)` to the Thrift struct to eliminate this field.
826    #[doc(hidden)]
827    pub _dot_dot_Default_default: self::dot_dot::OtherFields,
828}
829
830#[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
831pub struct RebuildIndexReq {
832    pub space_id: common::types::GraphSpaceID,
833    pub index_name: ::std::string::String,
834    pub is_offline: ::std::primitive::bool,
835    // This field forces `..Default::default()` when instantiating this
836    // struct, to make code future-proof against new fields added later to
837    // the definition in Thrift. If you don't want this, add the annotation
838    // `(rust.exhaustive)` to the Thrift struct to eliminate this field.
839    #[doc(hidden)]
840    pub _dot_dot_Default_default: self::dot_dot::OtherFields,
841}
842
843#[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
844pub struct CreateUserReq {
845    pub account: ::std::string::String,
846    pub encoded_pwd: ::std::string::String,
847    pub if_not_exists: ::std::primitive::bool,
848    // This field forces `..Default::default()` when instantiating this
849    // struct, to make code future-proof against new fields added later to
850    // the definition in Thrift. If you don't want this, add the annotation
851    // `(rust.exhaustive)` to the Thrift struct to eliminate this field.
852    #[doc(hidden)]
853    pub _dot_dot_Default_default: self::dot_dot::OtherFields,
854}
855
856#[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
857pub struct DropUserReq {
858    pub account: ::std::string::String,
859    pub if_exists: ::std::primitive::bool,
860    // This field forces `..Default::default()` when instantiating this
861    // struct, to make code future-proof against new fields added later to
862    // the definition in Thrift. If you don't want this, add the annotation
863    // `(rust.exhaustive)` to the Thrift struct to eliminate this field.
864    #[doc(hidden)]
865    pub _dot_dot_Default_default: self::dot_dot::OtherFields,
866}
867
868#[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
869pub struct AlterUserReq {
870    pub account: ::std::string::String,
871    pub encoded_pwd: ::std::string::String,
872    // This field forces `..Default::default()` when instantiating this
873    // struct, to make code future-proof against new fields added later to
874    // the definition in Thrift. If you don't want this, add the annotation
875    // `(rust.exhaustive)` to the Thrift struct to eliminate this field.
876    #[doc(hidden)]
877    pub _dot_dot_Default_default: self::dot_dot::OtherFields,
878}
879
880#[derive(Clone, PartialEq)]
881pub struct GrantRoleReq {
882    pub role_item: common::types::RoleItem,
883    // This field forces `..Default::default()` when instantiating this
884    // struct, to make code future-proof against new fields added later to
885    // the definition in Thrift. If you don't want this, add the annotation
886    // `(rust.exhaustive)` to the Thrift struct to eliminate this field.
887    #[doc(hidden)]
888    pub _dot_dot_Default_default: self::dot_dot::OtherFields,
889}
890
891#[derive(Clone, PartialEq)]
892pub struct RevokeRoleReq {
893    pub role_item: common::types::RoleItem,
894    // This field forces `..Default::default()` when instantiating this
895    // struct, to make code future-proof against new fields added later to
896    // the definition in Thrift. If you don't want this, add the annotation
897    // `(rust.exhaustive)` to the Thrift struct to eliminate this field.
898    #[doc(hidden)]
899    pub _dot_dot_Default_default: self::dot_dot::OtherFields,
900}
901
902#[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
903pub struct ListUsersReq {
904    // This field forces `..Default::default()` when instantiating this
905    // struct, to make code future-proof against new fields added later to
906    // the definition in Thrift. If you don't want this, add the annotation
907    // `(rust.exhaustive)` to the Thrift struct to eliminate this field.
908    #[doc(hidden)]
909    pub _dot_dot_Default_default: self::dot_dot::OtherFields,
910}
911
912#[derive(Clone, PartialEq)]
913pub struct ListUsersResp {
914    pub code: crate::types::ErrorCode,
915    pub leader: common::types::HostAddr,
916    pub users: ::std::collections::BTreeMap<::std::string::String, ::std::string::String>,
917    // This field forces `..Default::default()` when instantiating this
918    // struct, to make code future-proof against new fields added later to
919    // the definition in Thrift. If you don't want this, add the annotation
920    // `(rust.exhaustive)` to the Thrift struct to eliminate this field.
921    #[doc(hidden)]
922    pub _dot_dot_Default_default: self::dot_dot::OtherFields,
923}
924
925#[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
926pub struct ListRolesReq {
927    pub space_id: common::types::GraphSpaceID,
928    // This field forces `..Default::default()` when instantiating this
929    // struct, to make code future-proof against new fields added later to
930    // the definition in Thrift. If you don't want this, add the annotation
931    // `(rust.exhaustive)` to the Thrift struct to eliminate this field.
932    #[doc(hidden)]
933    pub _dot_dot_Default_default: self::dot_dot::OtherFields,
934}
935
936#[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
937pub struct GetUserRolesReq {
938    pub account: ::std::string::String,
939    // This field forces `..Default::default()` when instantiating this
940    // struct, to make code future-proof against new fields added later to
941    // the definition in Thrift. If you don't want this, add the annotation
942    // `(rust.exhaustive)` to the Thrift struct to eliminate this field.
943    #[doc(hidden)]
944    pub _dot_dot_Default_default: self::dot_dot::OtherFields,
945}
946
947#[derive(Clone, PartialEq)]
948pub struct ListRolesResp {
949    pub code: crate::types::ErrorCode,
950    pub leader: common::types::HostAddr,
951    pub roles: ::std::vec::Vec<common::types::RoleItem>,
952    // This field forces `..Default::default()` when instantiating this
953    // struct, to make code future-proof against new fields added later to
954    // the definition in Thrift. If you don't want this, add the annotation
955    // `(rust.exhaustive)` to the Thrift struct to eliminate this field.
956    #[doc(hidden)]
957    pub _dot_dot_Default_default: self::dot_dot::OtherFields,
958}
959
960#[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
961pub struct ChangePasswordReq {
962    pub account: ::std::string::String,
963    pub new_encoded_pwd: ::std::string::String,
964    pub old_encoded_pwd: ::std::string::String,
965    // This field forces `..Default::default()` when instantiating this
966    // struct, to make code future-proof against new fields added later to
967    // the definition in Thrift. If you don't want this, add the annotation
968    // `(rust.exhaustive)` to the Thrift struct to eliminate this field.
969    #[doc(hidden)]
970    pub _dot_dot_Default_default: self::dot_dot::OtherFields,
971}
972
973#[derive(Clone, PartialEq)]
974pub struct BalanceReq {
975    pub space_id: ::std::option::Option<common::types::GraphSpaceID>,
976    pub id: ::std::option::Option<::std::primitive::i64>,
977    pub host_del: ::std::option::Option<::std::vec::Vec<common::types::HostAddr>>,
978    pub stop: ::std::option::Option<::std::primitive::bool>,
979    // This field forces `..Default::default()` when instantiating this
980    // struct, to make code future-proof against new fields added later to
981    // the definition in Thrift. If you don't want this, add the annotation
982    // `(rust.exhaustive)` to the Thrift struct to eliminate this field.
983    #[doc(hidden)]
984    pub _dot_dot_Default_default: self::dot_dot::OtherFields,
985}
986
987#[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
988pub struct BalanceTask {
989    pub id: ::std::string::String,
990    pub result: crate::types::TaskResult,
991    // This field forces `..Default::default()` when instantiating this
992    // struct, to make code future-proof against new fields added later to
993    // the definition in Thrift. If you don't want this, add the annotation
994    // `(rust.exhaustive)` to the Thrift struct to eliminate this field.
995    #[doc(hidden)]
996    pub _dot_dot_Default_default: self::dot_dot::OtherFields,
997}
998
999#[derive(Clone, PartialEq)]
1000pub struct BalanceResp {
1001    pub code: crate::types::ErrorCode,
1002    pub id: ::std::primitive::i64,
1003    pub leader: common::types::HostAddr,
1004    pub tasks: ::std::vec::Vec<crate::types::BalanceTask>,
1005    // This field forces `..Default::default()` when instantiating this
1006    // struct, to make code future-proof against new fields added later to
1007    // the definition in Thrift. If you don't want this, add the annotation
1008    // `(rust.exhaustive)` to the Thrift struct to eliminate this field.
1009    #[doc(hidden)]
1010    pub _dot_dot_Default_default: self::dot_dot::OtherFields,
1011}
1012
1013#[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
1014pub struct LeaderBalanceReq {
1015    // This field forces `..Default::default()` when instantiating this
1016    // struct, to make code future-proof against new fields added later to
1017    // the definition in Thrift. If you don't want this, add the annotation
1018    // `(rust.exhaustive)` to the Thrift struct to eliminate this field.
1019    #[doc(hidden)]
1020    pub _dot_dot_Default_default: self::dot_dot::OtherFields,
1021}
1022
1023#[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
1024pub struct ConfigItem {
1025    pub module: crate::types::ConfigModule,
1026    pub name: ::std::string::String,
1027    pub r#type: crate::types::ConfigType,
1028    pub mode: crate::types::ConfigMode,
1029    pub value: ::std::vec::Vec<::std::primitive::u8>,
1030    // This field forces `..Default::default()` when instantiating this
1031    // struct, to make code future-proof against new fields added later to
1032    // the definition in Thrift. If you don't want this, add the annotation
1033    // `(rust.exhaustive)` to the Thrift struct to eliminate this field.
1034    #[doc(hidden)]
1035    pub _dot_dot_Default_default: self::dot_dot::OtherFields,
1036}
1037
1038#[derive(Clone, PartialEq)]
1039pub struct RegConfigReq {
1040    pub items: ::std::vec::Vec<crate::types::ConfigItem>,
1041    // This field forces `..Default::default()` when instantiating this
1042    // struct, to make code future-proof against new fields added later to
1043    // the definition in Thrift. If you don't want this, add the annotation
1044    // `(rust.exhaustive)` to the Thrift struct to eliminate this field.
1045    #[doc(hidden)]
1046    pub _dot_dot_Default_default: self::dot_dot::OtherFields,
1047}
1048
1049#[derive(Clone, PartialEq)]
1050pub struct GetConfigReq {
1051    pub item: crate::types::ConfigItem,
1052    // This field forces `..Default::default()` when instantiating this
1053    // struct, to make code future-proof against new fields added later to
1054    // the definition in Thrift. If you don't want this, add the annotation
1055    // `(rust.exhaustive)` to the Thrift struct to eliminate this field.
1056    #[doc(hidden)]
1057    pub _dot_dot_Default_default: self::dot_dot::OtherFields,
1058}
1059
1060#[derive(Clone, PartialEq)]
1061pub struct GetConfigResp {
1062    pub code: crate::types::ErrorCode,
1063    pub leader: common::types::HostAddr,
1064    pub items: ::std::vec::Vec<crate::types::ConfigItem>,
1065    // This field forces `..Default::default()` when instantiating this
1066    // struct, to make code future-proof against new fields added later to
1067    // the definition in Thrift. If you don't want this, add the annotation
1068    // `(rust.exhaustive)` to the Thrift struct to eliminate this field.
1069    #[doc(hidden)]
1070    pub _dot_dot_Default_default: self::dot_dot::OtherFields,
1071}
1072
1073#[derive(Clone, PartialEq)]
1074pub struct SetConfigReq {
1075    pub item: crate::types::ConfigItem,
1076    pub force: ::std::primitive::bool,
1077    // This field forces `..Default::default()` when instantiating this
1078    // struct, to make code future-proof against new fields added later to
1079    // the definition in Thrift. If you don't want this, add the annotation
1080    // `(rust.exhaustive)` to the Thrift struct to eliminate this field.
1081    #[doc(hidden)]
1082    pub _dot_dot_Default_default: self::dot_dot::OtherFields,
1083}
1084
1085#[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
1086pub struct ListConfigsReq {
1087    pub space: ::std::string::String,
1088    pub module: crate::types::ConfigModule,
1089    // This field forces `..Default::default()` when instantiating this
1090    // struct, to make code future-proof against new fields added later to
1091    // the definition in Thrift. If you don't want this, add the annotation
1092    // `(rust.exhaustive)` to the Thrift struct to eliminate this field.
1093    #[doc(hidden)]
1094    pub _dot_dot_Default_default: self::dot_dot::OtherFields,
1095}
1096
1097#[derive(Clone, PartialEq)]
1098pub struct ListConfigsResp {
1099    pub code: crate::types::ErrorCode,
1100    pub leader: common::types::HostAddr,
1101    pub items: ::std::vec::Vec<crate::types::ConfigItem>,
1102    // This field forces `..Default::default()` when instantiating this
1103    // struct, to make code future-proof against new fields added later to
1104    // the definition in Thrift. If you don't want this, add the annotation
1105    // `(rust.exhaustive)` to the Thrift struct to eliminate this field.
1106    #[doc(hidden)]
1107    pub _dot_dot_Default_default: self::dot_dot::OtherFields,
1108}
1109
1110#[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
1111pub struct CreateSnapshotReq {
1112    // This field forces `..Default::default()` when instantiating this
1113    // struct, to make code future-proof against new fields added later to
1114    // the definition in Thrift. If you don't want this, add the annotation
1115    // `(rust.exhaustive)` to the Thrift struct to eliminate this field.
1116    #[doc(hidden)]
1117    pub _dot_dot_Default_default: self::dot_dot::OtherFields,
1118}
1119
1120#[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
1121pub struct DropSnapshotReq {
1122    pub name: ::std::string::String,
1123    // This field forces `..Default::default()` when instantiating this
1124    // struct, to make code future-proof against new fields added later to
1125    // the definition in Thrift. If you don't want this, add the annotation
1126    // `(rust.exhaustive)` to the Thrift struct to eliminate this field.
1127    #[doc(hidden)]
1128    pub _dot_dot_Default_default: self::dot_dot::OtherFields,
1129}
1130
1131#[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
1132pub struct ListSnapshotsReq {
1133    // This field forces `..Default::default()` when instantiating this
1134    // struct, to make code future-proof against new fields added later to
1135    // the definition in Thrift. If you don't want this, add the annotation
1136    // `(rust.exhaustive)` to the Thrift struct to eliminate this field.
1137    #[doc(hidden)]
1138    pub _dot_dot_Default_default: self::dot_dot::OtherFields,
1139}
1140
1141#[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
1142pub struct Snapshot {
1143    pub name: ::std::string::String,
1144    pub status: crate::types::SnapshotStatus,
1145    pub hosts: ::std::string::String,
1146    // This field forces `..Default::default()` when instantiating this
1147    // struct, to make code future-proof against new fields added later to
1148    // the definition in Thrift. If you don't want this, add the annotation
1149    // `(rust.exhaustive)` to the Thrift struct to eliminate this field.
1150    #[doc(hidden)]
1151    pub _dot_dot_Default_default: self::dot_dot::OtherFields,
1152}
1153
1154#[derive(Clone, PartialEq)]
1155pub struct ListSnapshotsResp {
1156    pub code: crate::types::ErrorCode,
1157    pub leader: common::types::HostAddr,
1158    pub snapshots: ::std::vec::Vec<crate::types::Snapshot>,
1159    // This field forces `..Default::default()` when instantiating this
1160    // struct, to make code future-proof against new fields added later to
1161    // the definition in Thrift. If you don't want this, add the annotation
1162    // `(rust.exhaustive)` to the Thrift struct to eliminate this field.
1163    #[doc(hidden)]
1164    pub _dot_dot_Default_default: self::dot_dot::OtherFields,
1165}
1166
1167#[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
1168pub struct ListIndexStatusReq {
1169    pub space_id: common::types::GraphSpaceID,
1170    // This field forces `..Default::default()` when instantiating this
1171    // struct, to make code future-proof against new fields added later to
1172    // the definition in Thrift. If you don't want this, add the annotation
1173    // `(rust.exhaustive)` to the Thrift struct to eliminate this field.
1174    #[doc(hidden)]
1175    pub _dot_dot_Default_default: self::dot_dot::OtherFields,
1176}
1177
1178#[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
1179pub struct IndexStatus {
1180    pub name: ::std::string::String,
1181    pub status: ::std::string::String,
1182    // This field forces `..Default::default()` when instantiating this
1183    // struct, to make code future-proof against new fields added later to
1184    // the definition in Thrift. If you don't want this, add the annotation
1185    // `(rust.exhaustive)` to the Thrift struct to eliminate this field.
1186    #[doc(hidden)]
1187    pub _dot_dot_Default_default: self::dot_dot::OtherFields,
1188}
1189
1190#[derive(Clone, PartialEq)]
1191pub struct ListIndexStatusResp {
1192    pub code: crate::types::ErrorCode,
1193    pub leader: common::types::HostAddr,
1194    pub statuses: ::std::vec::Vec<crate::types::IndexStatus>,
1195    // This field forces `..Default::default()` when instantiating this
1196    // struct, to make code future-proof against new fields added later to
1197    // the definition in Thrift. If you don't want this, add the annotation
1198    // `(rust.exhaustive)` to the Thrift struct to eliminate this field.
1199    #[doc(hidden)]
1200    pub _dot_dot_Default_default: self::dot_dot::OtherFields,
1201}
1202
1203#[derive(Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash)]
1204pub struct ErrorCode(pub ::std::primitive::i32);
1205
1206impl ErrorCode {
1207    pub const SUCCEEDED: Self = ErrorCode(0i32);
1208    pub const E_DISCONNECTED: Self = ErrorCode(-1i32);
1209    pub const E_FAIL_TO_CONNECT: Self = ErrorCode(-2i32);
1210    pub const E_RPC_FAILURE: Self = ErrorCode(-3i32);
1211    pub const E_LEADER_CHANGED: Self = ErrorCode(-11i32);
1212    pub const E_NO_HOSTS: Self = ErrorCode(-21i32);
1213    pub const E_EXISTED: Self = ErrorCode(-22i32);
1214    pub const E_NOT_FOUND: Self = ErrorCode(-23i32);
1215    pub const E_INVALID_HOST: Self = ErrorCode(-24i32);
1216    pub const E_UNSUPPORTED: Self = ErrorCode(-25i32);
1217    pub const E_NOT_DROP: Self = ErrorCode(-26i32);
1218    pub const E_BALANCER_RUNNING: Self = ErrorCode(-27i32);
1219    pub const E_CONFIG_IMMUTABLE: Self = ErrorCode(-28i32);
1220    pub const E_CONFLICT: Self = ErrorCode(-29i32);
1221    pub const E_INVALID_PARM: Self = ErrorCode(-30i32);
1222    pub const E_WRONGCLUSTER: Self = ErrorCode(-31i32);
1223    pub const E_STORE_FAILURE: Self = ErrorCode(-32i32);
1224    pub const E_STORE_SEGMENT_ILLEGAL: Self = ErrorCode(-33i32);
1225    pub const E_BAD_BALANCE_PLAN: Self = ErrorCode(-34i32);
1226    pub const E_BALANCED: Self = ErrorCode(-35i32);
1227    pub const E_NO_RUNNING_BALANCE_PLAN: Self = ErrorCode(-36i32);
1228    pub const E_NO_VALID_HOST: Self = ErrorCode(-37i32);
1229    pub const E_CORRUPTTED_BALANCE_PLAN: Self = ErrorCode(-38i32);
1230    pub const E_INVALID_PASSWORD: Self = ErrorCode(-41i32);
1231    pub const E_IMPROPER_ROLE: Self = ErrorCode(-42i32);
1232    pub const E_INVALID_PARTITION_NUM: Self = ErrorCode(-43i32);
1233    pub const E_INVALID_REPLICA_FACTOR: Self = ErrorCode(-44i32);
1234    pub const E_INVALID_CHARSET: Self = ErrorCode(-45i32);
1235    pub const E_INVALID_COLLATE: Self = ErrorCode(-46i32);
1236    pub const E_CHARSET_COLLATE_NOT_MATCH: Self = ErrorCode(-47i32);
1237    pub const E_SNAPSHOT_FAILURE: Self = ErrorCode(-51i32);
1238    pub const E_BLOCK_WRITE_FAILURE: Self = ErrorCode(-52i32);
1239    pub const E_REBUILD_INDEX_FAILURE: Self = ErrorCode(-53i32);
1240    pub const E_INDEX_WITH_TTL: Self = ErrorCode(-54i32);
1241    pub const E_UNKNOWN: Self = ErrorCode(-99i32);
1242}
1243
1244impl ::fbthrift::ThriftEnum for ErrorCode {
1245    fn enumerate() -> &'static [(Self, &'static str)] {
1246        &[
1247            (Self::SUCCEEDED, "SUCCEEDED"),
1248            (Self::E_DISCONNECTED, "E_DISCONNECTED"),
1249            (Self::E_FAIL_TO_CONNECT, "E_FAIL_TO_CONNECT"),
1250            (Self::E_RPC_FAILURE, "E_RPC_FAILURE"),
1251            (Self::E_LEADER_CHANGED, "E_LEADER_CHANGED"),
1252            (Self::E_NO_HOSTS, "E_NO_HOSTS"),
1253            (Self::E_EXISTED, "E_EXISTED"),
1254            (Self::E_NOT_FOUND, "E_NOT_FOUND"),
1255            (Self::E_INVALID_HOST, "E_INVALID_HOST"),
1256            (Self::E_UNSUPPORTED, "E_UNSUPPORTED"),
1257            (Self::E_NOT_DROP, "E_NOT_DROP"),
1258            (Self::E_BALANCER_RUNNING, "E_BALANCER_RUNNING"),
1259            (Self::E_CONFIG_IMMUTABLE, "E_CONFIG_IMMUTABLE"),
1260            (Self::E_CONFLICT, "E_CONFLICT"),
1261            (Self::E_INVALID_PARM, "E_INVALID_PARM"),
1262            (Self::E_WRONGCLUSTER, "E_WRONGCLUSTER"),
1263            (Self::E_STORE_FAILURE, "E_STORE_FAILURE"),
1264            (Self::E_STORE_SEGMENT_ILLEGAL, "E_STORE_SEGMENT_ILLEGAL"),
1265            (Self::E_BAD_BALANCE_PLAN, "E_BAD_BALANCE_PLAN"),
1266            (Self::E_BALANCED, "E_BALANCED"),
1267            (Self::E_NO_RUNNING_BALANCE_PLAN, "E_NO_RUNNING_BALANCE_PLAN"),
1268            (Self::E_NO_VALID_HOST, "E_NO_VALID_HOST"),
1269            (Self::E_CORRUPTTED_BALANCE_PLAN, "E_CORRUPTTED_BALANCE_PLAN"),
1270            (Self::E_INVALID_PASSWORD, "E_INVALID_PASSWORD"),
1271            (Self::E_IMPROPER_ROLE, "E_IMPROPER_ROLE"),
1272            (Self::E_INVALID_PARTITION_NUM, "E_INVALID_PARTITION_NUM"),
1273            (Self::E_INVALID_REPLICA_FACTOR, "E_INVALID_REPLICA_FACTOR"),
1274            (Self::E_INVALID_CHARSET, "E_INVALID_CHARSET"),
1275            (Self::E_INVALID_COLLATE, "E_INVALID_COLLATE"),
1276            (Self::E_CHARSET_COLLATE_NOT_MATCH, "E_CHARSET_COLLATE_NOT_MATCH"),
1277            (Self::E_SNAPSHOT_FAILURE, "E_SNAPSHOT_FAILURE"),
1278            (Self::E_BLOCK_WRITE_FAILURE, "E_BLOCK_WRITE_FAILURE"),
1279            (Self::E_REBUILD_INDEX_FAILURE, "E_REBUILD_INDEX_FAILURE"),
1280            (Self::E_INDEX_WITH_TTL, "E_INDEX_WITH_TTL"),
1281            (Self::E_UNKNOWN, "E_UNKNOWN"),
1282        ]
1283    }
1284
1285    fn variants() -> &'static [&'static str] {
1286        &[
1287            "SUCCEEDED",
1288            "E_DISCONNECTED",
1289            "E_FAIL_TO_CONNECT",
1290            "E_RPC_FAILURE",
1291            "E_LEADER_CHANGED",
1292            "E_NO_HOSTS",
1293            "E_EXISTED",
1294            "E_NOT_FOUND",
1295            "E_INVALID_HOST",
1296            "E_UNSUPPORTED",
1297            "E_NOT_DROP",
1298            "E_BALANCER_RUNNING",
1299            "E_CONFIG_IMMUTABLE",
1300            "E_CONFLICT",
1301            "E_INVALID_PARM",
1302            "E_WRONGCLUSTER",
1303            "E_STORE_FAILURE",
1304            "E_STORE_SEGMENT_ILLEGAL",
1305            "E_BAD_BALANCE_PLAN",
1306            "E_BALANCED",
1307            "E_NO_RUNNING_BALANCE_PLAN",
1308            "E_NO_VALID_HOST",
1309            "E_CORRUPTTED_BALANCE_PLAN",
1310            "E_INVALID_PASSWORD",
1311            "E_IMPROPER_ROLE",
1312            "E_INVALID_PARTITION_NUM",
1313            "E_INVALID_REPLICA_FACTOR",
1314            "E_INVALID_CHARSET",
1315            "E_INVALID_COLLATE",
1316            "E_CHARSET_COLLATE_NOT_MATCH",
1317            "E_SNAPSHOT_FAILURE",
1318            "E_BLOCK_WRITE_FAILURE",
1319            "E_REBUILD_INDEX_FAILURE",
1320            "E_INDEX_WITH_TTL",
1321            "E_UNKNOWN",
1322        ]
1323    }
1324
1325    fn variant_values() -> &'static [Self] {
1326        &[
1327            Self::SUCCEEDED,
1328            Self::E_DISCONNECTED,
1329            Self::E_FAIL_TO_CONNECT,
1330            Self::E_RPC_FAILURE,
1331            Self::E_LEADER_CHANGED,
1332            Self::E_NO_HOSTS,
1333            Self::E_EXISTED,
1334            Self::E_NOT_FOUND,
1335            Self::E_INVALID_HOST,
1336            Self::E_UNSUPPORTED,
1337            Self::E_NOT_DROP,
1338            Self::E_BALANCER_RUNNING,
1339            Self::E_CONFIG_IMMUTABLE,
1340            Self::E_CONFLICT,
1341            Self::E_INVALID_PARM,
1342            Self::E_WRONGCLUSTER,
1343            Self::E_STORE_FAILURE,
1344            Self::E_STORE_SEGMENT_ILLEGAL,
1345            Self::E_BAD_BALANCE_PLAN,
1346            Self::E_BALANCED,
1347            Self::E_NO_RUNNING_BALANCE_PLAN,
1348            Self::E_NO_VALID_HOST,
1349            Self::E_CORRUPTTED_BALANCE_PLAN,
1350            Self::E_INVALID_PASSWORD,
1351            Self::E_IMPROPER_ROLE,
1352            Self::E_INVALID_PARTITION_NUM,
1353            Self::E_INVALID_REPLICA_FACTOR,
1354            Self::E_INVALID_CHARSET,
1355            Self::E_INVALID_COLLATE,
1356            Self::E_CHARSET_COLLATE_NOT_MATCH,
1357            Self::E_SNAPSHOT_FAILURE,
1358            Self::E_BLOCK_WRITE_FAILURE,
1359            Self::E_REBUILD_INDEX_FAILURE,
1360            Self::E_INDEX_WITH_TTL,
1361            Self::E_UNKNOWN,
1362        ]
1363    }
1364}
1365
1366impl ::std::default::Default for ErrorCode {
1367    fn default() -> Self {
1368        Self(::fbthrift::__UNKNOWN_ID)
1369    }
1370}
1371
1372impl<'a> ::std::convert::From<&'a ErrorCode> for ::std::primitive::i32 {
1373    #[inline]
1374    fn from(x: &'a ErrorCode) -> Self {
1375        x.0
1376    }
1377}
1378
1379impl ::std::convert::From<ErrorCode> for ::std::primitive::i32 {
1380    #[inline]
1381    fn from(x: ErrorCode) -> Self {
1382        x.0
1383    }
1384}
1385
1386impl ::std::convert::From<::std::primitive::i32> for ErrorCode {
1387    #[inline]
1388    fn from(x: ::std::primitive::i32) -> Self {
1389        Self(x)
1390    }
1391}
1392
1393impl ::std::fmt::Display for ErrorCode {
1394    fn fmt(&self, fmt: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1395        static VARIANTS_BY_NUMBER: &[(&::std::primitive::str, ::std::primitive::i32)] = &[
1396            ("E_UNKNOWN", -99),
1397            ("E_INDEX_WITH_TTL", -54),
1398            ("E_REBUILD_INDEX_FAILURE", -53),
1399            ("E_BLOCK_WRITE_FAILURE", -52),
1400            ("E_SNAPSHOT_FAILURE", -51),
1401            ("E_CHARSET_COLLATE_NOT_MATCH", -47),
1402            ("E_INVALID_COLLATE", -46),
1403            ("E_INVALID_CHARSET", -45),
1404            ("E_INVALID_REPLICA_FACTOR", -44),
1405            ("E_INVALID_PARTITION_NUM", -43),
1406            ("E_IMPROPER_ROLE", -42),
1407            ("E_INVALID_PASSWORD", -41),
1408            ("E_CORRUPTTED_BALANCE_PLAN", -38),
1409            ("E_NO_VALID_HOST", -37),
1410            ("E_NO_RUNNING_BALANCE_PLAN", -36),
1411            ("E_BALANCED", -35),
1412            ("E_BAD_BALANCE_PLAN", -34),
1413            ("E_STORE_SEGMENT_ILLEGAL", -33),
1414            ("E_STORE_FAILURE", -32),
1415            ("E_WRONGCLUSTER", -31),
1416            ("E_INVALID_PARM", -30),
1417            ("E_CONFLICT", -29),
1418            ("E_CONFIG_IMMUTABLE", -28),
1419            ("E_BALANCER_RUNNING", -27),
1420            ("E_NOT_DROP", -26),
1421            ("E_UNSUPPORTED", -25),
1422            ("E_INVALID_HOST", -24),
1423            ("E_NOT_FOUND", -23),
1424            ("E_EXISTED", -22),
1425            ("E_NO_HOSTS", -21),
1426            ("E_LEADER_CHANGED", -11),
1427            ("E_RPC_FAILURE", -3),
1428            ("E_FAIL_TO_CONNECT", -2),
1429            ("E_DISCONNECTED", -1),
1430            ("SUCCEEDED", 0),
1431        ];
1432        ::fbthrift::help::enum_display(VARIANTS_BY_NUMBER, fmt, self.0)
1433    }
1434}
1435
1436impl ::std::fmt::Debug for ErrorCode {
1437    fn fmt(&self, fmt: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1438        write!(fmt, "ErrorCode::{}", self)
1439    }
1440}
1441
1442impl ::std::str::FromStr for ErrorCode {
1443    type Err = ::anyhow::Error;
1444
1445    fn from_str(string: &::std::primitive::str) -> ::std::result::Result<Self, Self::Err> {
1446        static VARIANTS_BY_NAME: &[(&::std::primitive::str, ::std::primitive::i32)] = &[
1447            ("E_BAD_BALANCE_PLAN", -34),
1448            ("E_BALANCED", -35),
1449            ("E_BALANCER_RUNNING", -27),
1450            ("E_BLOCK_WRITE_FAILURE", -52),
1451            ("E_CHARSET_COLLATE_NOT_MATCH", -47),
1452            ("E_CONFIG_IMMUTABLE", -28),
1453            ("E_CONFLICT", -29),
1454            ("E_CORRUPTTED_BALANCE_PLAN", -38),
1455            ("E_DISCONNECTED", -1),
1456            ("E_EXISTED", -22),
1457            ("E_FAIL_TO_CONNECT", -2),
1458            ("E_IMPROPER_ROLE", -42),
1459            ("E_INDEX_WITH_TTL", -54),
1460            ("E_INVALID_CHARSET", -45),
1461            ("E_INVALID_COLLATE", -46),
1462            ("E_INVALID_HOST", -24),
1463            ("E_INVALID_PARM", -30),
1464            ("E_INVALID_PARTITION_NUM", -43),
1465            ("E_INVALID_PASSWORD", -41),
1466            ("E_INVALID_REPLICA_FACTOR", -44),
1467            ("E_LEADER_CHANGED", -11),
1468            ("E_NOT_DROP", -26),
1469            ("E_NOT_FOUND", -23),
1470            ("E_NO_HOSTS", -21),
1471            ("E_NO_RUNNING_BALANCE_PLAN", -36),
1472            ("E_NO_VALID_HOST", -37),
1473            ("E_REBUILD_INDEX_FAILURE", -53),
1474            ("E_RPC_FAILURE", -3),
1475            ("E_SNAPSHOT_FAILURE", -51),
1476            ("E_STORE_FAILURE", -32),
1477            ("E_STORE_SEGMENT_ILLEGAL", -33),
1478            ("E_UNKNOWN", -99),
1479            ("E_UNSUPPORTED", -25),
1480            ("E_WRONGCLUSTER", -31),
1481            ("SUCCEEDED", 0),
1482        ];
1483        ::fbthrift::help::enum_from_str(VARIANTS_BY_NAME, string, "ErrorCode").map(Self)
1484    }
1485}
1486
1487impl ::fbthrift::GetTType for ErrorCode {
1488    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::I32;
1489}
1490
1491impl<P> ::fbthrift::Serialize<P> for ErrorCode
1492where
1493    P: ::fbthrift::ProtocolWriter,
1494{
1495    #[inline]
1496    fn write(&self, p: &mut P) {
1497        p.write_i32(self.into())
1498    }
1499}
1500
1501impl<P> ::fbthrift::Deserialize<P> for ErrorCode
1502where
1503    P: ::fbthrift::ProtocolReader,
1504{
1505    #[inline]
1506    fn read(p: &mut P) -> ::anyhow::Result<Self> {
1507        ::std::result::Result::Ok(Self::from(p.read_i32()?))
1508    }
1509}
1510
1511#[derive(Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash)]
1512pub struct AlterSchemaOp(pub ::std::primitive::i32);
1513
1514impl AlterSchemaOp {
1515    pub const ADD: Self = AlterSchemaOp(1i32);
1516    pub const CHANGE: Self = AlterSchemaOp(2i32);
1517    pub const DROP: Self = AlterSchemaOp(3i32);
1518    pub const UNKNOWN: Self = AlterSchemaOp(4i32);
1519}
1520
1521impl ::fbthrift::ThriftEnum for AlterSchemaOp {
1522    fn enumerate() -> &'static [(Self, &'static str)] {
1523        &[
1524            (Self::ADD, "ADD"),
1525            (Self::CHANGE, "CHANGE"),
1526            (Self::DROP, "DROP"),
1527            (Self::UNKNOWN, "UNKNOWN"),
1528        ]
1529    }
1530
1531    fn variants() -> &'static [&'static str] {
1532        &[
1533            "ADD",
1534            "CHANGE",
1535            "DROP",
1536            "UNKNOWN",
1537        ]
1538    }
1539
1540    fn variant_values() -> &'static [Self] {
1541        &[
1542            Self::ADD,
1543            Self::CHANGE,
1544            Self::DROP,
1545            Self::UNKNOWN,
1546        ]
1547    }
1548}
1549
1550impl ::std::default::Default for AlterSchemaOp {
1551    fn default() -> Self {
1552        Self(::fbthrift::__UNKNOWN_ID)
1553    }
1554}
1555
1556impl<'a> ::std::convert::From<&'a AlterSchemaOp> for ::std::primitive::i32 {
1557    #[inline]
1558    fn from(x: &'a AlterSchemaOp) -> Self {
1559        x.0
1560    }
1561}
1562
1563impl ::std::convert::From<AlterSchemaOp> for ::std::primitive::i32 {
1564    #[inline]
1565    fn from(x: AlterSchemaOp) -> Self {
1566        x.0
1567    }
1568}
1569
1570impl ::std::convert::From<::std::primitive::i32> for AlterSchemaOp {
1571    #[inline]
1572    fn from(x: ::std::primitive::i32) -> Self {
1573        Self(x)
1574    }
1575}
1576
1577impl ::std::fmt::Display for AlterSchemaOp {
1578    fn fmt(&self, fmt: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1579        static VARIANTS_BY_NUMBER: &[(&::std::primitive::str, ::std::primitive::i32)] = &[
1580            ("ADD", 1),
1581            ("CHANGE", 2),
1582            ("DROP", 3),
1583            ("UNKNOWN", 4),
1584        ];
1585        ::fbthrift::help::enum_display(VARIANTS_BY_NUMBER, fmt, self.0)
1586    }
1587}
1588
1589impl ::std::fmt::Debug for AlterSchemaOp {
1590    fn fmt(&self, fmt: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1591        write!(fmt, "AlterSchemaOp::{}", self)
1592    }
1593}
1594
1595impl ::std::str::FromStr for AlterSchemaOp {
1596    type Err = ::anyhow::Error;
1597
1598    fn from_str(string: &::std::primitive::str) -> ::std::result::Result<Self, Self::Err> {
1599        static VARIANTS_BY_NAME: &[(&::std::primitive::str, ::std::primitive::i32)] = &[
1600            ("ADD", 1),
1601            ("CHANGE", 2),
1602            ("DROP", 3),
1603            ("UNKNOWN", 4),
1604        ];
1605        ::fbthrift::help::enum_from_str(VARIANTS_BY_NAME, string, "AlterSchemaOp").map(Self)
1606    }
1607}
1608
1609impl ::fbthrift::GetTType for AlterSchemaOp {
1610    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::I32;
1611}
1612
1613impl<P> ::fbthrift::Serialize<P> for AlterSchemaOp
1614where
1615    P: ::fbthrift::ProtocolWriter,
1616{
1617    #[inline]
1618    fn write(&self, p: &mut P) {
1619        p.write_i32(self.into())
1620    }
1621}
1622
1623impl<P> ::fbthrift::Deserialize<P> for AlterSchemaOp
1624where
1625    P: ::fbthrift::ProtocolReader,
1626{
1627    #[inline]
1628    fn read(p: &mut P) -> ::anyhow::Result<Self> {
1629        ::std::result::Result::Ok(Self::from(p.read_i32()?))
1630    }
1631}
1632
1633#[derive(Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash)]
1634pub struct HostStatus(pub ::std::primitive::i32);
1635
1636impl HostStatus {
1637    pub const ONLINE: Self = HostStatus(0i32);
1638    pub const OFFLINE: Self = HostStatus(1i32);
1639    pub const UNKNOWN: Self = HostStatus(2i32);
1640}
1641
1642impl ::fbthrift::ThriftEnum for HostStatus {
1643    fn enumerate() -> &'static [(Self, &'static str)] {
1644        &[
1645            (Self::ONLINE, "ONLINE"),
1646            (Self::OFFLINE, "OFFLINE"),
1647            (Self::UNKNOWN, "UNKNOWN"),
1648        ]
1649    }
1650
1651    fn variants() -> &'static [&'static str] {
1652        &[
1653            "ONLINE",
1654            "OFFLINE",
1655            "UNKNOWN",
1656        ]
1657    }
1658
1659    fn variant_values() -> &'static [Self] {
1660        &[
1661            Self::ONLINE,
1662            Self::OFFLINE,
1663            Self::UNKNOWN,
1664        ]
1665    }
1666}
1667
1668impl ::std::default::Default for HostStatus {
1669    fn default() -> Self {
1670        Self(::fbthrift::__UNKNOWN_ID)
1671    }
1672}
1673
1674impl<'a> ::std::convert::From<&'a HostStatus> for ::std::primitive::i32 {
1675    #[inline]
1676    fn from(x: &'a HostStatus) -> Self {
1677        x.0
1678    }
1679}
1680
1681impl ::std::convert::From<HostStatus> for ::std::primitive::i32 {
1682    #[inline]
1683    fn from(x: HostStatus) -> Self {
1684        x.0
1685    }
1686}
1687
1688impl ::std::convert::From<::std::primitive::i32> for HostStatus {
1689    #[inline]
1690    fn from(x: ::std::primitive::i32) -> Self {
1691        Self(x)
1692    }
1693}
1694
1695impl ::std::fmt::Display for HostStatus {
1696    fn fmt(&self, fmt: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1697        static VARIANTS_BY_NUMBER: &[(&::std::primitive::str, ::std::primitive::i32)] = &[
1698            ("ONLINE", 0),
1699            ("OFFLINE", 1),
1700            ("UNKNOWN", 2),
1701        ];
1702        ::fbthrift::help::enum_display(VARIANTS_BY_NUMBER, fmt, self.0)
1703    }
1704}
1705
1706impl ::std::fmt::Debug for HostStatus {
1707    fn fmt(&self, fmt: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1708        write!(fmt, "HostStatus::{}", self)
1709    }
1710}
1711
1712impl ::std::str::FromStr for HostStatus {
1713    type Err = ::anyhow::Error;
1714
1715    fn from_str(string: &::std::primitive::str) -> ::std::result::Result<Self, Self::Err> {
1716        static VARIANTS_BY_NAME: &[(&::std::primitive::str, ::std::primitive::i32)] = &[
1717            ("OFFLINE", 1),
1718            ("ONLINE", 0),
1719            ("UNKNOWN", 2),
1720        ];
1721        ::fbthrift::help::enum_from_str(VARIANTS_BY_NAME, string, "HostStatus").map(Self)
1722    }
1723}
1724
1725impl ::fbthrift::GetTType for HostStatus {
1726    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::I32;
1727}
1728
1729impl<P> ::fbthrift::Serialize<P> for HostStatus
1730where
1731    P: ::fbthrift::ProtocolWriter,
1732{
1733    #[inline]
1734    fn write(&self, p: &mut P) {
1735        p.write_i32(self.into())
1736    }
1737}
1738
1739impl<P> ::fbthrift::Deserialize<P> for HostStatus
1740where
1741    P: ::fbthrift::ProtocolReader,
1742{
1743    #[inline]
1744    fn read(p: &mut P) -> ::anyhow::Result<Self> {
1745        ::std::result::Result::Ok(Self::from(p.read_i32()?))
1746    }
1747}
1748
1749#[derive(Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash)]
1750pub struct SnapshotStatus(pub ::std::primitive::i32);
1751
1752impl SnapshotStatus {
1753    pub const VALID: Self = SnapshotStatus(0i32);
1754    pub const INVALID: Self = SnapshotStatus(1i32);
1755}
1756
1757impl ::fbthrift::ThriftEnum for SnapshotStatus {
1758    fn enumerate() -> &'static [(Self, &'static str)] {
1759        &[
1760            (Self::VALID, "VALID"),
1761            (Self::INVALID, "INVALID"),
1762        ]
1763    }
1764
1765    fn variants() -> &'static [&'static str] {
1766        &[
1767            "VALID",
1768            "INVALID",
1769        ]
1770    }
1771
1772    fn variant_values() -> &'static [Self] {
1773        &[
1774            Self::VALID,
1775            Self::INVALID,
1776        ]
1777    }
1778}
1779
1780impl ::std::default::Default for SnapshotStatus {
1781    fn default() -> Self {
1782        Self(::fbthrift::__UNKNOWN_ID)
1783    }
1784}
1785
1786impl<'a> ::std::convert::From<&'a SnapshotStatus> for ::std::primitive::i32 {
1787    #[inline]
1788    fn from(x: &'a SnapshotStatus) -> Self {
1789        x.0
1790    }
1791}
1792
1793impl ::std::convert::From<SnapshotStatus> for ::std::primitive::i32 {
1794    #[inline]
1795    fn from(x: SnapshotStatus) -> Self {
1796        x.0
1797    }
1798}
1799
1800impl ::std::convert::From<::std::primitive::i32> for SnapshotStatus {
1801    #[inline]
1802    fn from(x: ::std::primitive::i32) -> Self {
1803        Self(x)
1804    }
1805}
1806
1807impl ::std::fmt::Display for SnapshotStatus {
1808    fn fmt(&self, fmt: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1809        static VARIANTS_BY_NUMBER: &[(&::std::primitive::str, ::std::primitive::i32)] = &[
1810            ("VALID", 0),
1811            ("INVALID", 1),
1812        ];
1813        ::fbthrift::help::enum_display(VARIANTS_BY_NUMBER, fmt, self.0)
1814    }
1815}
1816
1817impl ::std::fmt::Debug for SnapshotStatus {
1818    fn fmt(&self, fmt: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1819        write!(fmt, "SnapshotStatus::{}", self)
1820    }
1821}
1822
1823impl ::std::str::FromStr for SnapshotStatus {
1824    type Err = ::anyhow::Error;
1825
1826    fn from_str(string: &::std::primitive::str) -> ::std::result::Result<Self, Self::Err> {
1827        static VARIANTS_BY_NAME: &[(&::std::primitive::str, ::std::primitive::i32)] = &[
1828            ("INVALID", 1),
1829            ("VALID", 0),
1830        ];
1831        ::fbthrift::help::enum_from_str(VARIANTS_BY_NAME, string, "SnapshotStatus").map(Self)
1832    }
1833}
1834
1835impl ::fbthrift::GetTType for SnapshotStatus {
1836    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::I32;
1837}
1838
1839impl<P> ::fbthrift::Serialize<P> for SnapshotStatus
1840where
1841    P: ::fbthrift::ProtocolWriter,
1842{
1843    #[inline]
1844    fn write(&self, p: &mut P) {
1845        p.write_i32(self.into())
1846    }
1847}
1848
1849impl<P> ::fbthrift::Deserialize<P> for SnapshotStatus
1850where
1851    P: ::fbthrift::ProtocolReader,
1852{
1853    #[inline]
1854    fn read(p: &mut P) -> ::anyhow::Result<Self> {
1855        ::std::result::Result::Ok(Self::from(p.read_i32()?))
1856    }
1857}
1858
1859#[derive(Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash)]
1860pub struct AdminJobOp(pub ::std::primitive::i32);
1861
1862impl AdminJobOp {
1863    pub const ADD: Self = AdminJobOp(1i32);
1864    pub const SHOW_All: Self = AdminJobOp(2i32);
1865    pub const SHOW: Self = AdminJobOp(3i32);
1866    pub const STOP: Self = AdminJobOp(4i32);
1867    pub const RECOVER: Self = AdminJobOp(5i32);
1868    pub const INVALID: Self = AdminJobOp(255i32);
1869}
1870
1871impl ::fbthrift::ThriftEnum for AdminJobOp {
1872    fn enumerate() -> &'static [(Self, &'static str)] {
1873        &[
1874            (Self::ADD, "ADD"),
1875            (Self::SHOW_All, "SHOW_All"),
1876            (Self::SHOW, "SHOW"),
1877            (Self::STOP, "STOP"),
1878            (Self::RECOVER, "RECOVER"),
1879            (Self::INVALID, "INVALID"),
1880        ]
1881    }
1882
1883    fn variants() -> &'static [&'static str] {
1884        &[
1885            "ADD",
1886            "SHOW_All",
1887            "SHOW",
1888            "STOP",
1889            "RECOVER",
1890            "INVALID",
1891        ]
1892    }
1893
1894    fn variant_values() -> &'static [Self] {
1895        &[
1896            Self::ADD,
1897            Self::SHOW_All,
1898            Self::SHOW,
1899            Self::STOP,
1900            Self::RECOVER,
1901            Self::INVALID,
1902        ]
1903    }
1904}
1905
1906impl ::std::default::Default for AdminJobOp {
1907    fn default() -> Self {
1908        Self(::fbthrift::__UNKNOWN_ID)
1909    }
1910}
1911
1912impl<'a> ::std::convert::From<&'a AdminJobOp> for ::std::primitive::i32 {
1913    #[inline]
1914    fn from(x: &'a AdminJobOp) -> Self {
1915        x.0
1916    }
1917}
1918
1919impl ::std::convert::From<AdminJobOp> for ::std::primitive::i32 {
1920    #[inline]
1921    fn from(x: AdminJobOp) -> Self {
1922        x.0
1923    }
1924}
1925
1926impl ::std::convert::From<::std::primitive::i32> for AdminJobOp {
1927    #[inline]
1928    fn from(x: ::std::primitive::i32) -> Self {
1929        Self(x)
1930    }
1931}
1932
1933impl ::std::fmt::Display for AdminJobOp {
1934    fn fmt(&self, fmt: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1935        static VARIANTS_BY_NUMBER: &[(&::std::primitive::str, ::std::primitive::i32)] = &[
1936            ("ADD", 1),
1937            ("SHOW_All", 2),
1938            ("SHOW", 3),
1939            ("STOP", 4),
1940            ("RECOVER", 5),
1941            ("INVALID", 255),
1942        ];
1943        ::fbthrift::help::enum_display(VARIANTS_BY_NUMBER, fmt, self.0)
1944    }
1945}
1946
1947impl ::std::fmt::Debug for AdminJobOp {
1948    fn fmt(&self, fmt: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
1949        write!(fmt, "AdminJobOp::{}", self)
1950    }
1951}
1952
1953impl ::std::str::FromStr for AdminJobOp {
1954    type Err = ::anyhow::Error;
1955
1956    fn from_str(string: &::std::primitive::str) -> ::std::result::Result<Self, Self::Err> {
1957        static VARIANTS_BY_NAME: &[(&::std::primitive::str, ::std::primitive::i32)] = &[
1958            ("ADD", 1),
1959            ("INVALID", 255),
1960            ("RECOVER", 5),
1961            ("SHOW", 3),
1962            ("SHOW_All", 2),
1963            ("STOP", 4),
1964        ];
1965        ::fbthrift::help::enum_from_str(VARIANTS_BY_NAME, string, "AdminJobOp").map(Self)
1966    }
1967}
1968
1969impl ::fbthrift::GetTType for AdminJobOp {
1970    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::I32;
1971}
1972
1973impl<P> ::fbthrift::Serialize<P> for AdminJobOp
1974where
1975    P: ::fbthrift::ProtocolWriter,
1976{
1977    #[inline]
1978    fn write(&self, p: &mut P) {
1979        p.write_i32(self.into())
1980    }
1981}
1982
1983impl<P> ::fbthrift::Deserialize<P> for AdminJobOp
1984where
1985    P: ::fbthrift::ProtocolReader,
1986{
1987    #[inline]
1988    fn read(p: &mut P) -> ::anyhow::Result<Self> {
1989        ::std::result::Result::Ok(Self::from(p.read_i32()?))
1990    }
1991}
1992
1993#[derive(Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash)]
1994pub struct JobStatus(pub ::std::primitive::i32);
1995
1996impl JobStatus {
1997    pub const QUEUE: Self = JobStatus(1i32);
1998    pub const RUNNING: Self = JobStatus(2i32);
1999    pub const FINISHED: Self = JobStatus(3i32);
2000    pub const FAILED: Self = JobStatus(4i32);
2001    pub const STOPPED: Self = JobStatus(5i32);
2002    pub const INVALID: Self = JobStatus(255i32);
2003}
2004
2005impl ::fbthrift::ThriftEnum for JobStatus {
2006    fn enumerate() -> &'static [(Self, &'static str)] {
2007        &[
2008            (Self::QUEUE, "QUEUE"),
2009            (Self::RUNNING, "RUNNING"),
2010            (Self::FINISHED, "FINISHED"),
2011            (Self::FAILED, "FAILED"),
2012            (Self::STOPPED, "STOPPED"),
2013            (Self::INVALID, "INVALID"),
2014        ]
2015    }
2016
2017    fn variants() -> &'static [&'static str] {
2018        &[
2019            "QUEUE",
2020            "RUNNING",
2021            "FINISHED",
2022            "FAILED",
2023            "STOPPED",
2024            "INVALID",
2025        ]
2026    }
2027
2028    fn variant_values() -> &'static [Self] {
2029        &[
2030            Self::QUEUE,
2031            Self::RUNNING,
2032            Self::FINISHED,
2033            Self::FAILED,
2034            Self::STOPPED,
2035            Self::INVALID,
2036        ]
2037    }
2038}
2039
2040impl ::std::default::Default for JobStatus {
2041    fn default() -> Self {
2042        Self(::fbthrift::__UNKNOWN_ID)
2043    }
2044}
2045
2046impl<'a> ::std::convert::From<&'a JobStatus> for ::std::primitive::i32 {
2047    #[inline]
2048    fn from(x: &'a JobStatus) -> Self {
2049        x.0
2050    }
2051}
2052
2053impl ::std::convert::From<JobStatus> for ::std::primitive::i32 {
2054    #[inline]
2055    fn from(x: JobStatus) -> Self {
2056        x.0
2057    }
2058}
2059
2060impl ::std::convert::From<::std::primitive::i32> for JobStatus {
2061    #[inline]
2062    fn from(x: ::std::primitive::i32) -> Self {
2063        Self(x)
2064    }
2065}
2066
2067impl ::std::fmt::Display for JobStatus {
2068    fn fmt(&self, fmt: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2069        static VARIANTS_BY_NUMBER: &[(&::std::primitive::str, ::std::primitive::i32)] = &[
2070            ("QUEUE", 1),
2071            ("RUNNING", 2),
2072            ("FINISHED", 3),
2073            ("FAILED", 4),
2074            ("STOPPED", 5),
2075            ("INVALID", 255),
2076        ];
2077        ::fbthrift::help::enum_display(VARIANTS_BY_NUMBER, fmt, self.0)
2078    }
2079}
2080
2081impl ::std::fmt::Debug for JobStatus {
2082    fn fmt(&self, fmt: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2083        write!(fmt, "JobStatus::{}", self)
2084    }
2085}
2086
2087impl ::std::str::FromStr for JobStatus {
2088    type Err = ::anyhow::Error;
2089
2090    fn from_str(string: &::std::primitive::str) -> ::std::result::Result<Self, Self::Err> {
2091        static VARIANTS_BY_NAME: &[(&::std::primitive::str, ::std::primitive::i32)] = &[
2092            ("FAILED", 4),
2093            ("FINISHED", 3),
2094            ("INVALID", 255),
2095            ("QUEUE", 1),
2096            ("RUNNING", 2),
2097            ("STOPPED", 5),
2098        ];
2099        ::fbthrift::help::enum_from_str(VARIANTS_BY_NAME, string, "JobStatus").map(Self)
2100    }
2101}
2102
2103impl ::fbthrift::GetTType for JobStatus {
2104    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::I32;
2105}
2106
2107impl<P> ::fbthrift::Serialize<P> for JobStatus
2108where
2109    P: ::fbthrift::ProtocolWriter,
2110{
2111    #[inline]
2112    fn write(&self, p: &mut P) {
2113        p.write_i32(self.into())
2114    }
2115}
2116
2117impl<P> ::fbthrift::Deserialize<P> for JobStatus
2118where
2119    P: ::fbthrift::ProtocolReader,
2120{
2121    #[inline]
2122    fn read(p: &mut P) -> ::anyhow::Result<Self> {
2123        ::std::result::Result::Ok(Self::from(p.read_i32()?))
2124    }
2125}
2126
2127#[derive(Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash)]
2128pub struct TaskResult(pub ::std::primitive::i32);
2129
2130impl TaskResult {
2131    pub const SUCCEEDED: Self = TaskResult(0i32);
2132    pub const FAILED: Self = TaskResult(1i32);
2133    pub const IN_PROGRESS: Self = TaskResult(2i32);
2134    pub const INVALID: Self = TaskResult(3i32);
2135}
2136
2137impl ::fbthrift::ThriftEnum for TaskResult {
2138    fn enumerate() -> &'static [(Self, &'static str)] {
2139        &[
2140            (Self::SUCCEEDED, "SUCCEEDED"),
2141            (Self::FAILED, "FAILED"),
2142            (Self::IN_PROGRESS, "IN_PROGRESS"),
2143            (Self::INVALID, "INVALID"),
2144        ]
2145    }
2146
2147    fn variants() -> &'static [&'static str] {
2148        &[
2149            "SUCCEEDED",
2150            "FAILED",
2151            "IN_PROGRESS",
2152            "INVALID",
2153        ]
2154    }
2155
2156    fn variant_values() -> &'static [Self] {
2157        &[
2158            Self::SUCCEEDED,
2159            Self::FAILED,
2160            Self::IN_PROGRESS,
2161            Self::INVALID,
2162        ]
2163    }
2164}
2165
2166impl ::std::default::Default for TaskResult {
2167    fn default() -> Self {
2168        Self(::fbthrift::__UNKNOWN_ID)
2169    }
2170}
2171
2172impl<'a> ::std::convert::From<&'a TaskResult> for ::std::primitive::i32 {
2173    #[inline]
2174    fn from(x: &'a TaskResult) -> Self {
2175        x.0
2176    }
2177}
2178
2179impl ::std::convert::From<TaskResult> for ::std::primitive::i32 {
2180    #[inline]
2181    fn from(x: TaskResult) -> Self {
2182        x.0
2183    }
2184}
2185
2186impl ::std::convert::From<::std::primitive::i32> for TaskResult {
2187    #[inline]
2188    fn from(x: ::std::primitive::i32) -> Self {
2189        Self(x)
2190    }
2191}
2192
2193impl ::std::fmt::Display for TaskResult {
2194    fn fmt(&self, fmt: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2195        static VARIANTS_BY_NUMBER: &[(&::std::primitive::str, ::std::primitive::i32)] = &[
2196            ("SUCCEEDED", 0),
2197            ("FAILED", 1),
2198            ("IN_PROGRESS", 2),
2199            ("INVALID", 3),
2200        ];
2201        ::fbthrift::help::enum_display(VARIANTS_BY_NUMBER, fmt, self.0)
2202    }
2203}
2204
2205impl ::std::fmt::Debug for TaskResult {
2206    fn fmt(&self, fmt: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2207        write!(fmt, "TaskResult::{}", self)
2208    }
2209}
2210
2211impl ::std::str::FromStr for TaskResult {
2212    type Err = ::anyhow::Error;
2213
2214    fn from_str(string: &::std::primitive::str) -> ::std::result::Result<Self, Self::Err> {
2215        static VARIANTS_BY_NAME: &[(&::std::primitive::str, ::std::primitive::i32)] = &[
2216            ("FAILED", 1),
2217            ("INVALID", 3),
2218            ("IN_PROGRESS", 2),
2219            ("SUCCEEDED", 0),
2220        ];
2221        ::fbthrift::help::enum_from_str(VARIANTS_BY_NAME, string, "TaskResult").map(Self)
2222    }
2223}
2224
2225impl ::fbthrift::GetTType for TaskResult {
2226    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::I32;
2227}
2228
2229impl<P> ::fbthrift::Serialize<P> for TaskResult
2230where
2231    P: ::fbthrift::ProtocolWriter,
2232{
2233    #[inline]
2234    fn write(&self, p: &mut P) {
2235        p.write_i32(self.into())
2236    }
2237}
2238
2239impl<P> ::fbthrift::Deserialize<P> for TaskResult
2240where
2241    P: ::fbthrift::ProtocolReader,
2242{
2243    #[inline]
2244    fn read(p: &mut P) -> ::anyhow::Result<Self> {
2245        ::std::result::Result::Ok(Self::from(p.read_i32()?))
2246    }
2247}
2248
2249#[derive(Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash)]
2250pub struct ConfigModule(pub ::std::primitive::i32);
2251
2252impl ConfigModule {
2253    pub const UNKNOWN: Self = ConfigModule(0i32);
2254    pub const ALL: Self = ConfigModule(1i32);
2255    pub const GRAPH: Self = ConfigModule(2i32);
2256    pub const META: Self = ConfigModule(3i32);
2257    pub const STORAGE: Self = ConfigModule(4i32);
2258}
2259
2260impl ::fbthrift::ThriftEnum for ConfigModule {
2261    fn enumerate() -> &'static [(Self, &'static str)] {
2262        &[
2263            (Self::UNKNOWN, "UNKNOWN"),
2264            (Self::ALL, "ALL"),
2265            (Self::GRAPH, "GRAPH"),
2266            (Self::META, "META"),
2267            (Self::STORAGE, "STORAGE"),
2268        ]
2269    }
2270
2271    fn variants() -> &'static [&'static str] {
2272        &[
2273            "UNKNOWN",
2274            "ALL",
2275            "GRAPH",
2276            "META",
2277            "STORAGE",
2278        ]
2279    }
2280
2281    fn variant_values() -> &'static [Self] {
2282        &[
2283            Self::UNKNOWN,
2284            Self::ALL,
2285            Self::GRAPH,
2286            Self::META,
2287            Self::STORAGE,
2288        ]
2289    }
2290}
2291
2292impl ::std::default::Default for ConfigModule {
2293    fn default() -> Self {
2294        Self(::fbthrift::__UNKNOWN_ID)
2295    }
2296}
2297
2298impl<'a> ::std::convert::From<&'a ConfigModule> for ::std::primitive::i32 {
2299    #[inline]
2300    fn from(x: &'a ConfigModule) -> Self {
2301        x.0
2302    }
2303}
2304
2305impl ::std::convert::From<ConfigModule> for ::std::primitive::i32 {
2306    #[inline]
2307    fn from(x: ConfigModule) -> Self {
2308        x.0
2309    }
2310}
2311
2312impl ::std::convert::From<::std::primitive::i32> for ConfigModule {
2313    #[inline]
2314    fn from(x: ::std::primitive::i32) -> Self {
2315        Self(x)
2316    }
2317}
2318
2319impl ::std::fmt::Display for ConfigModule {
2320    fn fmt(&self, fmt: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2321        static VARIANTS_BY_NUMBER: &[(&::std::primitive::str, ::std::primitive::i32)] = &[
2322            ("UNKNOWN", 0),
2323            ("ALL", 1),
2324            ("GRAPH", 2),
2325            ("META", 3),
2326            ("STORAGE", 4),
2327        ];
2328        ::fbthrift::help::enum_display(VARIANTS_BY_NUMBER, fmt, self.0)
2329    }
2330}
2331
2332impl ::std::fmt::Debug for ConfigModule {
2333    fn fmt(&self, fmt: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2334        write!(fmt, "ConfigModule::{}", self)
2335    }
2336}
2337
2338impl ::std::str::FromStr for ConfigModule {
2339    type Err = ::anyhow::Error;
2340
2341    fn from_str(string: &::std::primitive::str) -> ::std::result::Result<Self, Self::Err> {
2342        static VARIANTS_BY_NAME: &[(&::std::primitive::str, ::std::primitive::i32)] = &[
2343            ("ALL", 1),
2344            ("GRAPH", 2),
2345            ("META", 3),
2346            ("STORAGE", 4),
2347            ("UNKNOWN", 0),
2348        ];
2349        ::fbthrift::help::enum_from_str(VARIANTS_BY_NAME, string, "ConfigModule").map(Self)
2350    }
2351}
2352
2353impl ::fbthrift::GetTType for ConfigModule {
2354    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::I32;
2355}
2356
2357impl<P> ::fbthrift::Serialize<P> for ConfigModule
2358where
2359    P: ::fbthrift::ProtocolWriter,
2360{
2361    #[inline]
2362    fn write(&self, p: &mut P) {
2363        p.write_i32(self.into())
2364    }
2365}
2366
2367impl<P> ::fbthrift::Deserialize<P> for ConfigModule
2368where
2369    P: ::fbthrift::ProtocolReader,
2370{
2371    #[inline]
2372    fn read(p: &mut P) -> ::anyhow::Result<Self> {
2373        ::std::result::Result::Ok(Self::from(p.read_i32()?))
2374    }
2375}
2376
2377#[derive(Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash)]
2378pub struct ConfigType(pub ::std::primitive::i32);
2379
2380impl ConfigType {
2381    pub const INT64: Self = ConfigType(0i32);
2382    pub const DOUBLE: Self = ConfigType(1i32);
2383    pub const BOOL: Self = ConfigType(2i32);
2384    pub const STRING: Self = ConfigType(3i32);
2385    pub const NESTED: Self = ConfigType(4i32);
2386}
2387
2388impl ::fbthrift::ThriftEnum for ConfigType {
2389    fn enumerate() -> &'static [(Self, &'static str)] {
2390        &[
2391            (Self::INT64, "INT64"),
2392            (Self::DOUBLE, "DOUBLE"),
2393            (Self::BOOL, "BOOL"),
2394            (Self::STRING, "STRING"),
2395            (Self::NESTED, "NESTED"),
2396        ]
2397    }
2398
2399    fn variants() -> &'static [&'static str] {
2400        &[
2401            "INT64",
2402            "DOUBLE",
2403            "BOOL",
2404            "STRING",
2405            "NESTED",
2406        ]
2407    }
2408
2409    fn variant_values() -> &'static [Self] {
2410        &[
2411            Self::INT64,
2412            Self::DOUBLE,
2413            Self::BOOL,
2414            Self::STRING,
2415            Self::NESTED,
2416        ]
2417    }
2418}
2419
2420impl ::std::default::Default for ConfigType {
2421    fn default() -> Self {
2422        Self(::fbthrift::__UNKNOWN_ID)
2423    }
2424}
2425
2426impl<'a> ::std::convert::From<&'a ConfigType> for ::std::primitive::i32 {
2427    #[inline]
2428    fn from(x: &'a ConfigType) -> Self {
2429        x.0
2430    }
2431}
2432
2433impl ::std::convert::From<ConfigType> for ::std::primitive::i32 {
2434    #[inline]
2435    fn from(x: ConfigType) -> Self {
2436        x.0
2437    }
2438}
2439
2440impl ::std::convert::From<::std::primitive::i32> for ConfigType {
2441    #[inline]
2442    fn from(x: ::std::primitive::i32) -> Self {
2443        Self(x)
2444    }
2445}
2446
2447impl ::std::fmt::Display for ConfigType {
2448    fn fmt(&self, fmt: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2449        static VARIANTS_BY_NUMBER: &[(&::std::primitive::str, ::std::primitive::i32)] = &[
2450            ("INT64", 0),
2451            ("DOUBLE", 1),
2452            ("BOOL", 2),
2453            ("STRING", 3),
2454            ("NESTED", 4),
2455        ];
2456        ::fbthrift::help::enum_display(VARIANTS_BY_NUMBER, fmt, self.0)
2457    }
2458}
2459
2460impl ::std::fmt::Debug for ConfigType {
2461    fn fmt(&self, fmt: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2462        write!(fmt, "ConfigType::{}", self)
2463    }
2464}
2465
2466impl ::std::str::FromStr for ConfigType {
2467    type Err = ::anyhow::Error;
2468
2469    fn from_str(string: &::std::primitive::str) -> ::std::result::Result<Self, Self::Err> {
2470        static VARIANTS_BY_NAME: &[(&::std::primitive::str, ::std::primitive::i32)] = &[
2471            ("BOOL", 2),
2472            ("DOUBLE", 1),
2473            ("INT64", 0),
2474            ("NESTED", 4),
2475            ("STRING", 3),
2476        ];
2477        ::fbthrift::help::enum_from_str(VARIANTS_BY_NAME, string, "ConfigType").map(Self)
2478    }
2479}
2480
2481impl ::fbthrift::GetTType for ConfigType {
2482    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::I32;
2483}
2484
2485impl<P> ::fbthrift::Serialize<P> for ConfigType
2486where
2487    P: ::fbthrift::ProtocolWriter,
2488{
2489    #[inline]
2490    fn write(&self, p: &mut P) {
2491        p.write_i32(self.into())
2492    }
2493}
2494
2495impl<P> ::fbthrift::Deserialize<P> for ConfigType
2496where
2497    P: ::fbthrift::ProtocolReader,
2498{
2499    #[inline]
2500    fn read(p: &mut P) -> ::anyhow::Result<Self> {
2501        ::std::result::Result::Ok(Self::from(p.read_i32()?))
2502    }
2503}
2504
2505#[derive(Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash)]
2506pub struct ConfigMode(pub ::std::primitive::i32);
2507
2508impl ConfigMode {
2509    pub const IMMUTABLE: Self = ConfigMode(0i32);
2510    pub const REBOOT: Self = ConfigMode(1i32);
2511    pub const MUTABLE: Self = ConfigMode(2i32);
2512    pub const IGNORED: Self = ConfigMode(3i32);
2513}
2514
2515impl ::fbthrift::ThriftEnum for ConfigMode {
2516    fn enumerate() -> &'static [(Self, &'static str)] {
2517        &[
2518            (Self::IMMUTABLE, "IMMUTABLE"),
2519            (Self::REBOOT, "REBOOT"),
2520            (Self::MUTABLE, "MUTABLE"),
2521            (Self::IGNORED, "IGNORED"),
2522        ]
2523    }
2524
2525    fn variants() -> &'static [&'static str] {
2526        &[
2527            "IMMUTABLE",
2528            "REBOOT",
2529            "MUTABLE",
2530            "IGNORED",
2531        ]
2532    }
2533
2534    fn variant_values() -> &'static [Self] {
2535        &[
2536            Self::IMMUTABLE,
2537            Self::REBOOT,
2538            Self::MUTABLE,
2539            Self::IGNORED,
2540        ]
2541    }
2542}
2543
2544impl ::std::default::Default for ConfigMode {
2545    fn default() -> Self {
2546        Self(::fbthrift::__UNKNOWN_ID)
2547    }
2548}
2549
2550impl<'a> ::std::convert::From<&'a ConfigMode> for ::std::primitive::i32 {
2551    #[inline]
2552    fn from(x: &'a ConfigMode) -> Self {
2553        x.0
2554    }
2555}
2556
2557impl ::std::convert::From<ConfigMode> for ::std::primitive::i32 {
2558    #[inline]
2559    fn from(x: ConfigMode) -> Self {
2560        x.0
2561    }
2562}
2563
2564impl ::std::convert::From<::std::primitive::i32> for ConfigMode {
2565    #[inline]
2566    fn from(x: ::std::primitive::i32) -> Self {
2567        Self(x)
2568    }
2569}
2570
2571impl ::std::fmt::Display for ConfigMode {
2572    fn fmt(&self, fmt: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2573        static VARIANTS_BY_NUMBER: &[(&::std::primitive::str, ::std::primitive::i32)] = &[
2574            ("IMMUTABLE", 0),
2575            ("REBOOT", 1),
2576            ("MUTABLE", 2),
2577            ("IGNORED", 3),
2578        ];
2579        ::fbthrift::help::enum_display(VARIANTS_BY_NUMBER, fmt, self.0)
2580    }
2581}
2582
2583impl ::std::fmt::Debug for ConfigMode {
2584    fn fmt(&self, fmt: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2585        write!(fmt, "ConfigMode::{}", self)
2586    }
2587}
2588
2589impl ::std::str::FromStr for ConfigMode {
2590    type Err = ::anyhow::Error;
2591
2592    fn from_str(string: &::std::primitive::str) -> ::std::result::Result<Self, Self::Err> {
2593        static VARIANTS_BY_NAME: &[(&::std::primitive::str, ::std::primitive::i32)] = &[
2594            ("IGNORED", 3),
2595            ("IMMUTABLE", 0),
2596            ("MUTABLE", 2),
2597            ("REBOOT", 1),
2598        ];
2599        ::fbthrift::help::enum_from_str(VARIANTS_BY_NAME, string, "ConfigMode").map(Self)
2600    }
2601}
2602
2603impl ::fbthrift::GetTType for ConfigMode {
2604    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::I32;
2605}
2606
2607impl<P> ::fbthrift::Serialize<P> for ConfigMode
2608where
2609    P: ::fbthrift::ProtocolWriter,
2610{
2611    #[inline]
2612    fn write(&self, p: &mut P) {
2613        p.write_i32(self.into())
2614    }
2615}
2616
2617impl<P> ::fbthrift::Deserialize<P> for ConfigMode
2618where
2619    P: ::fbthrift::ProtocolReader,
2620{
2621    #[inline]
2622    fn read(p: &mut P) -> ::anyhow::Result<Self> {
2623        ::std::result::Result::Ok(Self::from(p.read_i32()?))
2624    }
2625}
2626
2627
2628impl ::std::default::Default for ID {
2629    fn default() -> Self {
2630        Self::UnknownField(-1)
2631    }
2632}
2633
2634impl ::fbthrift::GetTType for ID {
2635    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::Struct;
2636}
2637
2638impl<P> ::fbthrift::Serialize<P> for ID
2639where
2640    P: ::fbthrift::ProtocolWriter,
2641{
2642    fn write(&self, p: &mut P) {
2643        p.write_struct_begin("ID");
2644        match self {
2645            Self::space_id(inner) => {
2646                p.write_field_begin("space_id", ::fbthrift::TType::I32, 1);
2647                ::fbthrift::Serialize::write(inner, p);
2648                p.write_field_end();
2649            }
2650            Self::tag_id(inner) => {
2651                p.write_field_begin("tag_id", ::fbthrift::TType::I32, 2);
2652                ::fbthrift::Serialize::write(inner, p);
2653                p.write_field_end();
2654            }
2655            Self::edge_type(inner) => {
2656                p.write_field_begin("edge_type", ::fbthrift::TType::I32, 3);
2657                ::fbthrift::Serialize::write(inner, p);
2658                p.write_field_end();
2659            }
2660            Self::index_id(inner) => {
2661                p.write_field_begin("index_id", ::fbthrift::TType::I32, 4);
2662                ::fbthrift::Serialize::write(inner, p);
2663                p.write_field_end();
2664            }
2665            Self::cluster_id(inner) => {
2666                p.write_field_begin("cluster_id", ::fbthrift::TType::I64, 5);
2667                ::fbthrift::Serialize::write(inner, p);
2668                p.write_field_end();
2669            }
2670            Self::UnknownField(_) => {}
2671        }
2672        p.write_field_stop();
2673        p.write_struct_end();
2674    }
2675}
2676
2677impl<P> ::fbthrift::Deserialize<P> for ID
2678where
2679    P: ::fbthrift::ProtocolReader,
2680{
2681    fn read(p: &mut P) -> ::anyhow::Result<Self> {
2682        static FIELDS: &[::fbthrift::Field] = &[
2683            ::fbthrift::Field::new("cluster_id", ::fbthrift::TType::I64, 5),
2684            ::fbthrift::Field::new("edge_type", ::fbthrift::TType::I32, 3),
2685            ::fbthrift::Field::new("index_id", ::fbthrift::TType::I32, 4),
2686            ::fbthrift::Field::new("space_id", ::fbthrift::TType::I32, 1),
2687            ::fbthrift::Field::new("tag_id", ::fbthrift::TType::I32, 2),
2688        ];
2689        let _ = p.read_struct_begin(|_| ())?;
2690        let mut once = false;
2691        let mut alt = ::std::option::Option::None;
2692        loop {
2693            let (_, fty, fid) = p.read_field_begin(|_| (), FIELDS)?;
2694            match (fty, fid as ::std::primitive::i32, once) {
2695                (::fbthrift::TType::Stop, _, _) => break,
2696                (::fbthrift::TType::I32, 1, false) => {
2697                    once = true;
2698                    alt = ::std::option::Option::Some(Self::space_id(::fbthrift::Deserialize::read(p)?));
2699                }
2700                (::fbthrift::TType::I32, 2, false) => {
2701                    once = true;
2702                    alt = ::std::option::Option::Some(Self::tag_id(::fbthrift::Deserialize::read(p)?));
2703                }
2704                (::fbthrift::TType::I32, 3, false) => {
2705                    once = true;
2706                    alt = ::std::option::Option::Some(Self::edge_type(::fbthrift::Deserialize::read(p)?));
2707                }
2708                (::fbthrift::TType::I32, 4, false) => {
2709                    once = true;
2710                    alt = ::std::option::Option::Some(Self::index_id(::fbthrift::Deserialize::read(p)?));
2711                }
2712                (::fbthrift::TType::I64, 5, false) => {
2713                    once = true;
2714                    alt = ::std::option::Option::Some(Self::cluster_id(::fbthrift::Deserialize::read(p)?));
2715                }
2716                (fty, _, false) => p.skip(fty)?,
2717                (badty, badid, true) => return ::std::result::Result::Err(::std::convert::From::from(::fbthrift::ApplicationException::new(
2718                    ::fbthrift::ApplicationExceptionErrorCode::ProtocolError,
2719                    format!(
2720                        "unwanted extra union {} field ty {:?} id {}",
2721                        "ID",
2722                        badty,
2723                        badid,
2724                    ),
2725                ))),
2726            }
2727            p.read_field_end()?;
2728        }
2729        p.read_struct_end()?;
2730        ::std::result::Result::Ok(alt.unwrap_or_default())
2731    }
2732}
2733
2734#[allow(clippy::derivable_impls)]
2735impl ::std::default::Default for self::IdName {
2736    fn default() -> Self {
2737        Self {
2738            id: ::std::default::Default::default(),
2739            name: ::std::default::Default::default(),
2740            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
2741        }
2742    }
2743}
2744
2745impl ::std::fmt::Debug for self::IdName {
2746    fn fmt(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2747        formatter
2748            .debug_struct("IdName")
2749            .field("id", &self.id)
2750            .field("name", &self.name)
2751            .finish()
2752    }
2753}
2754
2755unsafe impl ::std::marker::Send for self::IdName {}
2756unsafe impl ::std::marker::Sync for self::IdName {}
2757
2758impl ::fbthrift::GetTType for self::IdName {
2759    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::Struct;
2760}
2761
2762impl<P> ::fbthrift::Serialize<P> for self::IdName
2763where
2764    P: ::fbthrift::ProtocolWriter,
2765{
2766    fn write(&self, p: &mut P) {
2767        p.write_struct_begin("IdName");
2768        p.write_field_begin("id", ::fbthrift::TType::Struct, 1);
2769        ::fbthrift::Serialize::write(&self.id, p);
2770        p.write_field_end();
2771        p.write_field_begin("name", ::fbthrift::TType::String, 2);
2772        ::fbthrift::Serialize::write(&self.name, p);
2773        p.write_field_end();
2774        p.write_field_stop();
2775        p.write_struct_end();
2776    }
2777}
2778
2779impl<P> ::fbthrift::Deserialize<P> for self::IdName
2780where
2781    P: ::fbthrift::ProtocolReader,
2782{
2783    fn read(p: &mut P) -> ::anyhow::Result<Self> {
2784        static FIELDS: &[::fbthrift::Field] = &[
2785            ::fbthrift::Field::new("id", ::fbthrift::TType::Struct, 1),
2786            ::fbthrift::Field::new("name", ::fbthrift::TType::String, 2),
2787        ];
2788        let mut field_id = ::std::option::Option::None;
2789        let mut field_name = ::std::option::Option::None;
2790        let _ = p.read_struct_begin(|_| ())?;
2791        loop {
2792            let (_, fty, fid) = p.read_field_begin(|_| (), FIELDS)?;
2793            match (fty, fid as ::std::primitive::i32) {
2794                (::fbthrift::TType::Stop, _) => break,
2795                (::fbthrift::TType::Struct, 1) => field_id = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
2796                (::fbthrift::TType::String, 2) => field_name = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
2797                (fty, _) => p.skip(fty)?,
2798            }
2799            p.read_field_end()?;
2800        }
2801        p.read_struct_end()?;
2802        ::std::result::Result::Ok(Self {
2803            id: field_id.unwrap_or_default(),
2804            name: field_name.unwrap_or_default(),
2805            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
2806        })
2807    }
2808}
2809
2810
2811#[allow(clippy::derivable_impls)]
2812impl ::std::default::Default for self::SpaceProperties {
2813    fn default() -> Self {
2814        Self {
2815            space_name: ::std::default::Default::default(),
2816            partition_num: ::std::default::Default::default(),
2817            replica_factor: ::std::default::Default::default(),
2818            charset_name: ::std::default::Default::default(),
2819            collate_name: ::std::default::Default::default(),
2820            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
2821        }
2822    }
2823}
2824
2825impl ::std::fmt::Debug for self::SpaceProperties {
2826    fn fmt(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2827        formatter
2828            .debug_struct("SpaceProperties")
2829            .field("space_name", &self.space_name)
2830            .field("partition_num", &self.partition_num)
2831            .field("replica_factor", &self.replica_factor)
2832            .field("charset_name", &self.charset_name)
2833            .field("collate_name", &self.collate_name)
2834            .finish()
2835    }
2836}
2837
2838unsafe impl ::std::marker::Send for self::SpaceProperties {}
2839unsafe impl ::std::marker::Sync for self::SpaceProperties {}
2840
2841impl ::fbthrift::GetTType for self::SpaceProperties {
2842    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::Struct;
2843}
2844
2845impl<P> ::fbthrift::Serialize<P> for self::SpaceProperties
2846where
2847    P: ::fbthrift::ProtocolWriter,
2848{
2849    fn write(&self, p: &mut P) {
2850        p.write_struct_begin("SpaceProperties");
2851        p.write_field_begin("space_name", ::fbthrift::TType::String, 1);
2852        ::fbthrift::Serialize::write(&self.space_name, p);
2853        p.write_field_end();
2854        p.write_field_begin("partition_num", ::fbthrift::TType::I32, 2);
2855        ::fbthrift::Serialize::write(&self.partition_num, p);
2856        p.write_field_end();
2857        p.write_field_begin("replica_factor", ::fbthrift::TType::I32, 3);
2858        ::fbthrift::Serialize::write(&self.replica_factor, p);
2859        p.write_field_end();
2860        p.write_field_begin("charset_name", ::fbthrift::TType::String, 4);
2861        ::fbthrift::Serialize::write(&self.charset_name, p);
2862        p.write_field_end();
2863        p.write_field_begin("collate_name", ::fbthrift::TType::String, 5);
2864        ::fbthrift::Serialize::write(&self.collate_name, p);
2865        p.write_field_end();
2866        p.write_field_stop();
2867        p.write_struct_end();
2868    }
2869}
2870
2871impl<P> ::fbthrift::Deserialize<P> for self::SpaceProperties
2872where
2873    P: ::fbthrift::ProtocolReader,
2874{
2875    fn read(p: &mut P) -> ::anyhow::Result<Self> {
2876        static FIELDS: &[::fbthrift::Field] = &[
2877            ::fbthrift::Field::new("charset_name", ::fbthrift::TType::String, 4),
2878            ::fbthrift::Field::new("collate_name", ::fbthrift::TType::String, 5),
2879            ::fbthrift::Field::new("partition_num", ::fbthrift::TType::I32, 2),
2880            ::fbthrift::Field::new("replica_factor", ::fbthrift::TType::I32, 3),
2881            ::fbthrift::Field::new("space_name", ::fbthrift::TType::String, 1),
2882        ];
2883        let mut field_space_name = ::std::option::Option::None;
2884        let mut field_partition_num = ::std::option::Option::None;
2885        let mut field_replica_factor = ::std::option::Option::None;
2886        let mut field_charset_name = ::std::option::Option::None;
2887        let mut field_collate_name = ::std::option::Option::None;
2888        let _ = p.read_struct_begin(|_| ())?;
2889        loop {
2890            let (_, fty, fid) = p.read_field_begin(|_| (), FIELDS)?;
2891            match (fty, fid as ::std::primitive::i32) {
2892                (::fbthrift::TType::Stop, _) => break,
2893                (::fbthrift::TType::String, 1) => field_space_name = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
2894                (::fbthrift::TType::I32, 2) => field_partition_num = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
2895                (::fbthrift::TType::I32, 3) => field_replica_factor = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
2896                (::fbthrift::TType::String, 4) => field_charset_name = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
2897                (::fbthrift::TType::String, 5) => field_collate_name = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
2898                (fty, _) => p.skip(fty)?,
2899            }
2900            p.read_field_end()?;
2901        }
2902        p.read_struct_end()?;
2903        ::std::result::Result::Ok(Self {
2904            space_name: field_space_name.unwrap_or_default(),
2905            partition_num: field_partition_num.unwrap_or_default(),
2906            replica_factor: field_replica_factor.unwrap_or_default(),
2907            charset_name: field_charset_name.unwrap_or_default(),
2908            collate_name: field_collate_name.unwrap_or_default(),
2909            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
2910        })
2911    }
2912}
2913
2914
2915#[allow(clippy::derivable_impls)]
2916impl ::std::default::Default for self::SpaceItem {
2917    fn default() -> Self {
2918        Self {
2919            space_id: ::std::default::Default::default(),
2920            properties: ::std::default::Default::default(),
2921            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
2922        }
2923    }
2924}
2925
2926impl ::std::fmt::Debug for self::SpaceItem {
2927    fn fmt(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
2928        formatter
2929            .debug_struct("SpaceItem")
2930            .field("space_id", &self.space_id)
2931            .field("properties", &self.properties)
2932            .finish()
2933    }
2934}
2935
2936unsafe impl ::std::marker::Send for self::SpaceItem {}
2937unsafe impl ::std::marker::Sync for self::SpaceItem {}
2938
2939impl ::fbthrift::GetTType for self::SpaceItem {
2940    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::Struct;
2941}
2942
2943impl<P> ::fbthrift::Serialize<P> for self::SpaceItem
2944where
2945    P: ::fbthrift::ProtocolWriter,
2946{
2947    fn write(&self, p: &mut P) {
2948        p.write_struct_begin("SpaceItem");
2949        p.write_field_begin("space_id", ::fbthrift::TType::I32, 1);
2950        ::fbthrift::Serialize::write(&self.space_id, p);
2951        p.write_field_end();
2952        p.write_field_begin("properties", ::fbthrift::TType::Struct, 2);
2953        ::fbthrift::Serialize::write(&self.properties, p);
2954        p.write_field_end();
2955        p.write_field_stop();
2956        p.write_struct_end();
2957    }
2958}
2959
2960impl<P> ::fbthrift::Deserialize<P> for self::SpaceItem
2961where
2962    P: ::fbthrift::ProtocolReader,
2963{
2964    fn read(p: &mut P) -> ::anyhow::Result<Self> {
2965        static FIELDS: &[::fbthrift::Field] = &[
2966            ::fbthrift::Field::new("properties", ::fbthrift::TType::Struct, 2),
2967            ::fbthrift::Field::new("space_id", ::fbthrift::TType::I32, 1),
2968        ];
2969        let mut field_space_id = ::std::option::Option::None;
2970        let mut field_properties = ::std::option::Option::None;
2971        let _ = p.read_struct_begin(|_| ())?;
2972        loop {
2973            let (_, fty, fid) = p.read_field_begin(|_| (), FIELDS)?;
2974            match (fty, fid as ::std::primitive::i32) {
2975                (::fbthrift::TType::Stop, _) => break,
2976                (::fbthrift::TType::I32, 1) => field_space_id = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
2977                (::fbthrift::TType::Struct, 2) => field_properties = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
2978                (fty, _) => p.skip(fty)?,
2979            }
2980            p.read_field_end()?;
2981        }
2982        p.read_struct_end()?;
2983        ::std::result::Result::Ok(Self {
2984            space_id: field_space_id.unwrap_or_default(),
2985            properties: field_properties.unwrap_or_default(),
2986            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
2987        })
2988    }
2989}
2990
2991
2992#[allow(clippy::derivable_impls)]
2993impl ::std::default::Default for self::TagItem {
2994    fn default() -> Self {
2995        Self {
2996            tag_id: ::std::default::Default::default(),
2997            tag_name: ::std::default::Default::default(),
2998            version: ::std::default::Default::default(),
2999            schema: ::std::default::Default::default(),
3000            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
3001        }
3002    }
3003}
3004
3005impl ::std::fmt::Debug for self::TagItem {
3006    fn fmt(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
3007        formatter
3008            .debug_struct("TagItem")
3009            .field("tag_id", &self.tag_id)
3010            .field("tag_name", &self.tag_name)
3011            .field("version", &self.version)
3012            .field("schema", &self.schema)
3013            .finish()
3014    }
3015}
3016
3017unsafe impl ::std::marker::Send for self::TagItem {}
3018unsafe impl ::std::marker::Sync for self::TagItem {}
3019
3020impl ::fbthrift::GetTType for self::TagItem {
3021    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::Struct;
3022}
3023
3024impl<P> ::fbthrift::Serialize<P> for self::TagItem
3025where
3026    P: ::fbthrift::ProtocolWriter,
3027{
3028    fn write(&self, p: &mut P) {
3029        p.write_struct_begin("TagItem");
3030        p.write_field_begin("tag_id", ::fbthrift::TType::I32, 1);
3031        ::fbthrift::Serialize::write(&self.tag_id, p);
3032        p.write_field_end();
3033        p.write_field_begin("tag_name", ::fbthrift::TType::String, 2);
3034        ::fbthrift::Serialize::write(&self.tag_name, p);
3035        p.write_field_end();
3036        p.write_field_begin("version", ::fbthrift::TType::I64, 3);
3037        ::fbthrift::Serialize::write(&self.version, p);
3038        p.write_field_end();
3039        p.write_field_begin("schema", ::fbthrift::TType::Struct, 4);
3040        ::fbthrift::Serialize::write(&self.schema, p);
3041        p.write_field_end();
3042        p.write_field_stop();
3043        p.write_struct_end();
3044    }
3045}
3046
3047impl<P> ::fbthrift::Deserialize<P> for self::TagItem
3048where
3049    P: ::fbthrift::ProtocolReader,
3050{
3051    fn read(p: &mut P) -> ::anyhow::Result<Self> {
3052        static FIELDS: &[::fbthrift::Field] = &[
3053            ::fbthrift::Field::new("schema", ::fbthrift::TType::Struct, 4),
3054            ::fbthrift::Field::new("tag_id", ::fbthrift::TType::I32, 1),
3055            ::fbthrift::Field::new("tag_name", ::fbthrift::TType::String, 2),
3056            ::fbthrift::Field::new("version", ::fbthrift::TType::I64, 3),
3057        ];
3058        let mut field_tag_id = ::std::option::Option::None;
3059        let mut field_tag_name = ::std::option::Option::None;
3060        let mut field_version = ::std::option::Option::None;
3061        let mut field_schema = ::std::option::Option::None;
3062        let _ = p.read_struct_begin(|_| ())?;
3063        loop {
3064            let (_, fty, fid) = p.read_field_begin(|_| (), FIELDS)?;
3065            match (fty, fid as ::std::primitive::i32) {
3066                (::fbthrift::TType::Stop, _) => break,
3067                (::fbthrift::TType::I32, 1) => field_tag_id = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
3068                (::fbthrift::TType::String, 2) => field_tag_name = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
3069                (::fbthrift::TType::I64, 3) => field_version = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
3070                (::fbthrift::TType::Struct, 4) => field_schema = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
3071                (fty, _) => p.skip(fty)?,
3072            }
3073            p.read_field_end()?;
3074        }
3075        p.read_struct_end()?;
3076        ::std::result::Result::Ok(Self {
3077            tag_id: field_tag_id.unwrap_or_default(),
3078            tag_name: field_tag_name.unwrap_or_default(),
3079            version: field_version.unwrap_or_default(),
3080            schema: field_schema.unwrap_or_default(),
3081            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
3082        })
3083    }
3084}
3085
3086
3087#[allow(clippy::derivable_impls)]
3088impl ::std::default::Default for self::AlterSchemaItem {
3089    fn default() -> Self {
3090        Self {
3091            op: ::std::default::Default::default(),
3092            schema: ::std::default::Default::default(),
3093            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
3094        }
3095    }
3096}
3097
3098impl ::std::fmt::Debug for self::AlterSchemaItem {
3099    fn fmt(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
3100        formatter
3101            .debug_struct("AlterSchemaItem")
3102            .field("op", &self.op)
3103            .field("schema", &self.schema)
3104            .finish()
3105    }
3106}
3107
3108unsafe impl ::std::marker::Send for self::AlterSchemaItem {}
3109unsafe impl ::std::marker::Sync for self::AlterSchemaItem {}
3110
3111impl ::fbthrift::GetTType for self::AlterSchemaItem {
3112    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::Struct;
3113}
3114
3115impl<P> ::fbthrift::Serialize<P> for self::AlterSchemaItem
3116where
3117    P: ::fbthrift::ProtocolWriter,
3118{
3119    fn write(&self, p: &mut P) {
3120        p.write_struct_begin("AlterSchemaItem");
3121        p.write_field_begin("op", ::fbthrift::TType::I32, 1);
3122        ::fbthrift::Serialize::write(&self.op, p);
3123        p.write_field_end();
3124        p.write_field_begin("schema", ::fbthrift::TType::Struct, 2);
3125        ::fbthrift::Serialize::write(&self.schema, p);
3126        p.write_field_end();
3127        p.write_field_stop();
3128        p.write_struct_end();
3129    }
3130}
3131
3132impl<P> ::fbthrift::Deserialize<P> for self::AlterSchemaItem
3133where
3134    P: ::fbthrift::ProtocolReader,
3135{
3136    fn read(p: &mut P) -> ::anyhow::Result<Self> {
3137        static FIELDS: &[::fbthrift::Field] = &[
3138            ::fbthrift::Field::new("op", ::fbthrift::TType::I32, 1),
3139            ::fbthrift::Field::new("schema", ::fbthrift::TType::Struct, 2),
3140        ];
3141        let mut field_op = ::std::option::Option::None;
3142        let mut field_schema = ::std::option::Option::None;
3143        let _ = p.read_struct_begin(|_| ())?;
3144        loop {
3145            let (_, fty, fid) = p.read_field_begin(|_| (), FIELDS)?;
3146            match (fty, fid as ::std::primitive::i32) {
3147                (::fbthrift::TType::Stop, _) => break,
3148                (::fbthrift::TType::I32, 1) => field_op = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
3149                (::fbthrift::TType::Struct, 2) => field_schema = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
3150                (fty, _) => p.skip(fty)?,
3151            }
3152            p.read_field_end()?;
3153        }
3154        p.read_struct_end()?;
3155        ::std::result::Result::Ok(Self {
3156            op: field_op.unwrap_or_default(),
3157            schema: field_schema.unwrap_or_default(),
3158            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
3159        })
3160    }
3161}
3162
3163
3164#[allow(clippy::derivable_impls)]
3165impl ::std::default::Default for self::EdgeItem {
3166    fn default() -> Self {
3167        Self {
3168            edge_type: ::std::default::Default::default(),
3169            edge_name: ::std::default::Default::default(),
3170            version: ::std::default::Default::default(),
3171            schema: ::std::default::Default::default(),
3172            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
3173        }
3174    }
3175}
3176
3177impl ::std::fmt::Debug for self::EdgeItem {
3178    fn fmt(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
3179        formatter
3180            .debug_struct("EdgeItem")
3181            .field("edge_type", &self.edge_type)
3182            .field("edge_name", &self.edge_name)
3183            .field("version", &self.version)
3184            .field("schema", &self.schema)
3185            .finish()
3186    }
3187}
3188
3189unsafe impl ::std::marker::Send for self::EdgeItem {}
3190unsafe impl ::std::marker::Sync for self::EdgeItem {}
3191
3192impl ::fbthrift::GetTType for self::EdgeItem {
3193    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::Struct;
3194}
3195
3196impl<P> ::fbthrift::Serialize<P> for self::EdgeItem
3197where
3198    P: ::fbthrift::ProtocolWriter,
3199{
3200    fn write(&self, p: &mut P) {
3201        p.write_struct_begin("EdgeItem");
3202        p.write_field_begin("edge_type", ::fbthrift::TType::I32, 1);
3203        ::fbthrift::Serialize::write(&self.edge_type, p);
3204        p.write_field_end();
3205        p.write_field_begin("edge_name", ::fbthrift::TType::String, 2);
3206        ::fbthrift::Serialize::write(&self.edge_name, p);
3207        p.write_field_end();
3208        p.write_field_begin("version", ::fbthrift::TType::I64, 3);
3209        ::fbthrift::Serialize::write(&self.version, p);
3210        p.write_field_end();
3211        p.write_field_begin("schema", ::fbthrift::TType::Struct, 4);
3212        ::fbthrift::Serialize::write(&self.schema, p);
3213        p.write_field_end();
3214        p.write_field_stop();
3215        p.write_struct_end();
3216    }
3217}
3218
3219impl<P> ::fbthrift::Deserialize<P> for self::EdgeItem
3220where
3221    P: ::fbthrift::ProtocolReader,
3222{
3223    fn read(p: &mut P) -> ::anyhow::Result<Self> {
3224        static FIELDS: &[::fbthrift::Field] = &[
3225            ::fbthrift::Field::new("edge_name", ::fbthrift::TType::String, 2),
3226            ::fbthrift::Field::new("edge_type", ::fbthrift::TType::I32, 1),
3227            ::fbthrift::Field::new("schema", ::fbthrift::TType::Struct, 4),
3228            ::fbthrift::Field::new("version", ::fbthrift::TType::I64, 3),
3229        ];
3230        let mut field_edge_type = ::std::option::Option::None;
3231        let mut field_edge_name = ::std::option::Option::None;
3232        let mut field_version = ::std::option::Option::None;
3233        let mut field_schema = ::std::option::Option::None;
3234        let _ = p.read_struct_begin(|_| ())?;
3235        loop {
3236            let (_, fty, fid) = p.read_field_begin(|_| (), FIELDS)?;
3237            match (fty, fid as ::std::primitive::i32) {
3238                (::fbthrift::TType::Stop, _) => break,
3239                (::fbthrift::TType::I32, 1) => field_edge_type = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
3240                (::fbthrift::TType::String, 2) => field_edge_name = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
3241                (::fbthrift::TType::I64, 3) => field_version = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
3242                (::fbthrift::TType::Struct, 4) => field_schema = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
3243                (fty, _) => p.skip(fty)?,
3244            }
3245            p.read_field_end()?;
3246        }
3247        p.read_struct_end()?;
3248        ::std::result::Result::Ok(Self {
3249            edge_type: field_edge_type.unwrap_or_default(),
3250            edge_name: field_edge_name.unwrap_or_default(),
3251            version: field_version.unwrap_or_default(),
3252            schema: field_schema.unwrap_or_default(),
3253            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
3254        })
3255    }
3256}
3257
3258
3259#[allow(clippy::derivable_impls)]
3260impl ::std::default::Default for self::HostItem {
3261    fn default() -> Self {
3262        Self {
3263            hostAddr: ::std::default::Default::default(),
3264            status: ::std::default::Default::default(),
3265            leader_parts: ::std::default::Default::default(),
3266            all_parts: ::std::default::Default::default(),
3267            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
3268        }
3269    }
3270}
3271
3272impl ::std::fmt::Debug for self::HostItem {
3273    fn fmt(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
3274        formatter
3275            .debug_struct("HostItem")
3276            .field("hostAddr", &self.hostAddr)
3277            .field("status", &self.status)
3278            .field("leader_parts", &self.leader_parts)
3279            .field("all_parts", &self.all_parts)
3280            .finish()
3281    }
3282}
3283
3284unsafe impl ::std::marker::Send for self::HostItem {}
3285unsafe impl ::std::marker::Sync for self::HostItem {}
3286
3287impl ::fbthrift::GetTType for self::HostItem {
3288    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::Struct;
3289}
3290
3291impl<P> ::fbthrift::Serialize<P> for self::HostItem
3292where
3293    P: ::fbthrift::ProtocolWriter,
3294{
3295    fn write(&self, p: &mut P) {
3296        p.write_struct_begin("HostItem");
3297        p.write_field_begin("hostAddr", ::fbthrift::TType::Struct, 1);
3298        ::fbthrift::Serialize::write(&self.hostAddr, p);
3299        p.write_field_end();
3300        p.write_field_begin("status", ::fbthrift::TType::I32, 2);
3301        ::fbthrift::Serialize::write(&self.status, p);
3302        p.write_field_end();
3303        p.write_field_begin("leader_parts", ::fbthrift::TType::Map, 3);
3304        ::fbthrift::Serialize::write(&self.leader_parts, p);
3305        p.write_field_end();
3306        p.write_field_begin("all_parts", ::fbthrift::TType::Map, 4);
3307        ::fbthrift::Serialize::write(&self.all_parts, p);
3308        p.write_field_end();
3309        p.write_field_stop();
3310        p.write_struct_end();
3311    }
3312}
3313
3314impl<P> ::fbthrift::Deserialize<P> for self::HostItem
3315where
3316    P: ::fbthrift::ProtocolReader,
3317{
3318    fn read(p: &mut P) -> ::anyhow::Result<Self> {
3319        static FIELDS: &[::fbthrift::Field] = &[
3320            ::fbthrift::Field::new("all_parts", ::fbthrift::TType::Map, 4),
3321            ::fbthrift::Field::new("hostAddr", ::fbthrift::TType::Struct, 1),
3322            ::fbthrift::Field::new("leader_parts", ::fbthrift::TType::Map, 3),
3323            ::fbthrift::Field::new("status", ::fbthrift::TType::I32, 2),
3324        ];
3325        let mut field_hostAddr = ::std::option::Option::None;
3326        let mut field_status = ::std::option::Option::None;
3327        let mut field_leader_parts = ::std::option::Option::None;
3328        let mut field_all_parts = ::std::option::Option::None;
3329        let _ = p.read_struct_begin(|_| ())?;
3330        loop {
3331            let (_, fty, fid) = p.read_field_begin(|_| (), FIELDS)?;
3332            match (fty, fid as ::std::primitive::i32) {
3333                (::fbthrift::TType::Stop, _) => break,
3334                (::fbthrift::TType::Struct, 1) => field_hostAddr = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
3335                (::fbthrift::TType::I32, 2) => field_status = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
3336                (::fbthrift::TType::Map, 3) => field_leader_parts = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
3337                (::fbthrift::TType::Map, 4) => field_all_parts = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
3338                (fty, _) => p.skip(fty)?,
3339            }
3340            p.read_field_end()?;
3341        }
3342        p.read_struct_end()?;
3343        ::std::result::Result::Ok(Self {
3344            hostAddr: field_hostAddr.unwrap_or_default(),
3345            status: field_status.unwrap_or_default(),
3346            leader_parts: field_leader_parts.unwrap_or_default(),
3347            all_parts: field_all_parts.unwrap_or_default(),
3348            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
3349        })
3350    }
3351}
3352
3353
3354#[allow(clippy::derivable_impls)]
3355impl ::std::default::Default for self::ExecResp {
3356    fn default() -> Self {
3357        Self {
3358            code: ::std::default::Default::default(),
3359            id: ::std::default::Default::default(),
3360            leader: ::std::default::Default::default(),
3361            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
3362        }
3363    }
3364}
3365
3366impl ::std::fmt::Debug for self::ExecResp {
3367    fn fmt(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
3368        formatter
3369            .debug_struct("ExecResp")
3370            .field("code", &self.code)
3371            .field("id", &self.id)
3372            .field("leader", &self.leader)
3373            .finish()
3374    }
3375}
3376
3377unsafe impl ::std::marker::Send for self::ExecResp {}
3378unsafe impl ::std::marker::Sync for self::ExecResp {}
3379
3380impl ::fbthrift::GetTType for self::ExecResp {
3381    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::Struct;
3382}
3383
3384impl<P> ::fbthrift::Serialize<P> for self::ExecResp
3385where
3386    P: ::fbthrift::ProtocolWriter,
3387{
3388    fn write(&self, p: &mut P) {
3389        p.write_struct_begin("ExecResp");
3390        p.write_field_begin("code", ::fbthrift::TType::I32, 1);
3391        ::fbthrift::Serialize::write(&self.code, p);
3392        p.write_field_end();
3393        p.write_field_begin("id", ::fbthrift::TType::Struct, 2);
3394        ::fbthrift::Serialize::write(&self.id, p);
3395        p.write_field_end();
3396        p.write_field_begin("leader", ::fbthrift::TType::Struct, 3);
3397        ::fbthrift::Serialize::write(&self.leader, p);
3398        p.write_field_end();
3399        p.write_field_stop();
3400        p.write_struct_end();
3401    }
3402}
3403
3404impl<P> ::fbthrift::Deserialize<P> for self::ExecResp
3405where
3406    P: ::fbthrift::ProtocolReader,
3407{
3408    fn read(p: &mut P) -> ::anyhow::Result<Self> {
3409        static FIELDS: &[::fbthrift::Field] = &[
3410            ::fbthrift::Field::new("code", ::fbthrift::TType::I32, 1),
3411            ::fbthrift::Field::new("id", ::fbthrift::TType::Struct, 2),
3412            ::fbthrift::Field::new("leader", ::fbthrift::TType::Struct, 3),
3413        ];
3414        let mut field_code = ::std::option::Option::None;
3415        let mut field_id = ::std::option::Option::None;
3416        let mut field_leader = ::std::option::Option::None;
3417        let _ = p.read_struct_begin(|_| ())?;
3418        loop {
3419            let (_, fty, fid) = p.read_field_begin(|_| (), FIELDS)?;
3420            match (fty, fid as ::std::primitive::i32) {
3421                (::fbthrift::TType::Stop, _) => break,
3422                (::fbthrift::TType::I32, 1) => field_code = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
3423                (::fbthrift::TType::Struct, 2) => field_id = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
3424                (::fbthrift::TType::Struct, 3) => field_leader = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
3425                (fty, _) => p.skip(fty)?,
3426            }
3427            p.read_field_end()?;
3428        }
3429        p.read_struct_end()?;
3430        ::std::result::Result::Ok(Self {
3431            code: field_code.unwrap_or_default(),
3432            id: field_id.unwrap_or_default(),
3433            leader: field_leader.unwrap_or_default(),
3434            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
3435        })
3436    }
3437}
3438
3439
3440#[allow(clippy::derivable_impls)]
3441impl ::std::default::Default for self::CreateSpaceReq {
3442    fn default() -> Self {
3443        Self {
3444            properties: ::std::default::Default::default(),
3445            if_not_exists: ::std::default::Default::default(),
3446            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
3447        }
3448    }
3449}
3450
3451impl ::std::fmt::Debug for self::CreateSpaceReq {
3452    fn fmt(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
3453        formatter
3454            .debug_struct("CreateSpaceReq")
3455            .field("properties", &self.properties)
3456            .field("if_not_exists", &self.if_not_exists)
3457            .finish()
3458    }
3459}
3460
3461unsafe impl ::std::marker::Send for self::CreateSpaceReq {}
3462unsafe impl ::std::marker::Sync for self::CreateSpaceReq {}
3463
3464impl ::fbthrift::GetTType for self::CreateSpaceReq {
3465    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::Struct;
3466}
3467
3468impl<P> ::fbthrift::Serialize<P> for self::CreateSpaceReq
3469where
3470    P: ::fbthrift::ProtocolWriter,
3471{
3472    fn write(&self, p: &mut P) {
3473        p.write_struct_begin("CreateSpaceReq");
3474        p.write_field_begin("properties", ::fbthrift::TType::Struct, 1);
3475        ::fbthrift::Serialize::write(&self.properties, p);
3476        p.write_field_end();
3477        p.write_field_begin("if_not_exists", ::fbthrift::TType::Bool, 2);
3478        ::fbthrift::Serialize::write(&self.if_not_exists, p);
3479        p.write_field_end();
3480        p.write_field_stop();
3481        p.write_struct_end();
3482    }
3483}
3484
3485impl<P> ::fbthrift::Deserialize<P> for self::CreateSpaceReq
3486where
3487    P: ::fbthrift::ProtocolReader,
3488{
3489    fn read(p: &mut P) -> ::anyhow::Result<Self> {
3490        static FIELDS: &[::fbthrift::Field] = &[
3491            ::fbthrift::Field::new("if_not_exists", ::fbthrift::TType::Bool, 2),
3492            ::fbthrift::Field::new("properties", ::fbthrift::TType::Struct, 1),
3493        ];
3494        let mut field_properties = ::std::option::Option::None;
3495        let mut field_if_not_exists = ::std::option::Option::None;
3496        let _ = p.read_struct_begin(|_| ())?;
3497        loop {
3498            let (_, fty, fid) = p.read_field_begin(|_| (), FIELDS)?;
3499            match (fty, fid as ::std::primitive::i32) {
3500                (::fbthrift::TType::Stop, _) => break,
3501                (::fbthrift::TType::Struct, 1) => field_properties = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
3502                (::fbthrift::TType::Bool, 2) => field_if_not_exists = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
3503                (fty, _) => p.skip(fty)?,
3504            }
3505            p.read_field_end()?;
3506        }
3507        p.read_struct_end()?;
3508        ::std::result::Result::Ok(Self {
3509            properties: field_properties.unwrap_or_default(),
3510            if_not_exists: field_if_not_exists.unwrap_or_default(),
3511            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
3512        })
3513    }
3514}
3515
3516
3517#[allow(clippy::derivable_impls)]
3518impl ::std::default::Default for self::DropSpaceReq {
3519    fn default() -> Self {
3520        Self {
3521            space_name: ::std::default::Default::default(),
3522            if_exists: ::std::default::Default::default(),
3523            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
3524        }
3525    }
3526}
3527
3528impl ::std::fmt::Debug for self::DropSpaceReq {
3529    fn fmt(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
3530        formatter
3531            .debug_struct("DropSpaceReq")
3532            .field("space_name", &self.space_name)
3533            .field("if_exists", &self.if_exists)
3534            .finish()
3535    }
3536}
3537
3538unsafe impl ::std::marker::Send for self::DropSpaceReq {}
3539unsafe impl ::std::marker::Sync for self::DropSpaceReq {}
3540
3541impl ::fbthrift::GetTType for self::DropSpaceReq {
3542    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::Struct;
3543}
3544
3545impl<P> ::fbthrift::Serialize<P> for self::DropSpaceReq
3546where
3547    P: ::fbthrift::ProtocolWriter,
3548{
3549    fn write(&self, p: &mut P) {
3550        p.write_struct_begin("DropSpaceReq");
3551        p.write_field_begin("space_name", ::fbthrift::TType::String, 1);
3552        ::fbthrift::Serialize::write(&self.space_name, p);
3553        p.write_field_end();
3554        p.write_field_begin("if_exists", ::fbthrift::TType::Bool, 2);
3555        ::fbthrift::Serialize::write(&self.if_exists, p);
3556        p.write_field_end();
3557        p.write_field_stop();
3558        p.write_struct_end();
3559    }
3560}
3561
3562impl<P> ::fbthrift::Deserialize<P> for self::DropSpaceReq
3563where
3564    P: ::fbthrift::ProtocolReader,
3565{
3566    fn read(p: &mut P) -> ::anyhow::Result<Self> {
3567        static FIELDS: &[::fbthrift::Field] = &[
3568            ::fbthrift::Field::new("if_exists", ::fbthrift::TType::Bool, 2),
3569            ::fbthrift::Field::new("space_name", ::fbthrift::TType::String, 1),
3570        ];
3571        let mut field_space_name = ::std::option::Option::None;
3572        let mut field_if_exists = ::std::option::Option::None;
3573        let _ = p.read_struct_begin(|_| ())?;
3574        loop {
3575            let (_, fty, fid) = p.read_field_begin(|_| (), FIELDS)?;
3576            match (fty, fid as ::std::primitive::i32) {
3577                (::fbthrift::TType::Stop, _) => break,
3578                (::fbthrift::TType::String, 1) => field_space_name = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
3579                (::fbthrift::TType::Bool, 2) => field_if_exists = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
3580                (fty, _) => p.skip(fty)?,
3581            }
3582            p.read_field_end()?;
3583        }
3584        p.read_struct_end()?;
3585        ::std::result::Result::Ok(Self {
3586            space_name: field_space_name.unwrap_or_default(),
3587            if_exists: field_if_exists.unwrap_or_default(),
3588            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
3589        })
3590    }
3591}
3592
3593
3594#[allow(clippy::derivable_impls)]
3595impl ::std::default::Default for self::AdminJobReq {
3596    fn default() -> Self {
3597        Self {
3598            op: ::std::default::Default::default(),
3599            paras: ::std::default::Default::default(),
3600            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
3601        }
3602    }
3603}
3604
3605impl ::std::fmt::Debug for self::AdminJobReq {
3606    fn fmt(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
3607        formatter
3608            .debug_struct("AdminJobReq")
3609            .field("op", &self.op)
3610            .field("paras", &self.paras)
3611            .finish()
3612    }
3613}
3614
3615unsafe impl ::std::marker::Send for self::AdminJobReq {}
3616unsafe impl ::std::marker::Sync for self::AdminJobReq {}
3617
3618impl ::fbthrift::GetTType for self::AdminJobReq {
3619    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::Struct;
3620}
3621
3622impl<P> ::fbthrift::Serialize<P> for self::AdminJobReq
3623where
3624    P: ::fbthrift::ProtocolWriter,
3625{
3626    fn write(&self, p: &mut P) {
3627        p.write_struct_begin("AdminJobReq");
3628        p.write_field_begin("op", ::fbthrift::TType::I32, 1);
3629        ::fbthrift::Serialize::write(&self.op, p);
3630        p.write_field_end();
3631        p.write_field_begin("paras", ::fbthrift::TType::List, 2);
3632        ::fbthrift::Serialize::write(&self.paras, p);
3633        p.write_field_end();
3634        p.write_field_stop();
3635        p.write_struct_end();
3636    }
3637}
3638
3639impl<P> ::fbthrift::Deserialize<P> for self::AdminJobReq
3640where
3641    P: ::fbthrift::ProtocolReader,
3642{
3643    fn read(p: &mut P) -> ::anyhow::Result<Self> {
3644        static FIELDS: &[::fbthrift::Field] = &[
3645            ::fbthrift::Field::new("op", ::fbthrift::TType::I32, 1),
3646            ::fbthrift::Field::new("paras", ::fbthrift::TType::List, 2),
3647        ];
3648        let mut field_op = ::std::option::Option::None;
3649        let mut field_paras = ::std::option::Option::None;
3650        let _ = p.read_struct_begin(|_| ())?;
3651        loop {
3652            let (_, fty, fid) = p.read_field_begin(|_| (), FIELDS)?;
3653            match (fty, fid as ::std::primitive::i32) {
3654                (::fbthrift::TType::Stop, _) => break,
3655                (::fbthrift::TType::I32, 1) => field_op = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
3656                (::fbthrift::TType::List, 2) => field_paras = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
3657                (fty, _) => p.skip(fty)?,
3658            }
3659            p.read_field_end()?;
3660        }
3661        p.read_struct_end()?;
3662        ::std::result::Result::Ok(Self {
3663            op: field_op.unwrap_or_default(),
3664            paras: field_paras.unwrap_or_default(),
3665            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
3666        })
3667    }
3668}
3669
3670
3671#[allow(clippy::derivable_impls)]
3672impl ::std::default::Default for self::JobDesc {
3673    fn default() -> Self {
3674        Self {
3675            id: ::std::default::Default::default(),
3676            cmd: ::std::default::Default::default(),
3677            paras: ::std::default::Default::default(),
3678            status: ::std::default::Default::default(),
3679            start_time: ::std::default::Default::default(),
3680            stop_time: ::std::default::Default::default(),
3681            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
3682        }
3683    }
3684}
3685
3686impl ::std::fmt::Debug for self::JobDesc {
3687    fn fmt(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
3688        formatter
3689            .debug_struct("JobDesc")
3690            .field("id", &self.id)
3691            .field("cmd", &self.cmd)
3692            .field("paras", &self.paras)
3693            .field("status", &self.status)
3694            .field("start_time", &self.start_time)
3695            .field("stop_time", &self.stop_time)
3696            .finish()
3697    }
3698}
3699
3700unsafe impl ::std::marker::Send for self::JobDesc {}
3701unsafe impl ::std::marker::Sync for self::JobDesc {}
3702
3703impl ::fbthrift::GetTType for self::JobDesc {
3704    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::Struct;
3705}
3706
3707impl<P> ::fbthrift::Serialize<P> for self::JobDesc
3708where
3709    P: ::fbthrift::ProtocolWriter,
3710{
3711    fn write(&self, p: &mut P) {
3712        p.write_struct_begin("JobDesc");
3713        p.write_field_begin("id", ::fbthrift::TType::I32, 1);
3714        ::fbthrift::Serialize::write(&self.id, p);
3715        p.write_field_end();
3716        p.write_field_begin("cmd", ::fbthrift::TType::String, 2);
3717        ::fbthrift::Serialize::write(&self.cmd, p);
3718        p.write_field_end();
3719        p.write_field_begin("paras", ::fbthrift::TType::List, 3);
3720        ::fbthrift::Serialize::write(&self.paras, p);
3721        p.write_field_end();
3722        p.write_field_begin("status", ::fbthrift::TType::I32, 4);
3723        ::fbthrift::Serialize::write(&self.status, p);
3724        p.write_field_end();
3725        p.write_field_begin("start_time", ::fbthrift::TType::I64, 5);
3726        ::fbthrift::Serialize::write(&self.start_time, p);
3727        p.write_field_end();
3728        p.write_field_begin("stop_time", ::fbthrift::TType::I64, 6);
3729        ::fbthrift::Serialize::write(&self.stop_time, p);
3730        p.write_field_end();
3731        p.write_field_stop();
3732        p.write_struct_end();
3733    }
3734}
3735
3736impl<P> ::fbthrift::Deserialize<P> for self::JobDesc
3737where
3738    P: ::fbthrift::ProtocolReader,
3739{
3740    fn read(p: &mut P) -> ::anyhow::Result<Self> {
3741        static FIELDS: &[::fbthrift::Field] = &[
3742            ::fbthrift::Field::new("cmd", ::fbthrift::TType::String, 2),
3743            ::fbthrift::Field::new("id", ::fbthrift::TType::I32, 1),
3744            ::fbthrift::Field::new("paras", ::fbthrift::TType::List, 3),
3745            ::fbthrift::Field::new("start_time", ::fbthrift::TType::I64, 5),
3746            ::fbthrift::Field::new("status", ::fbthrift::TType::I32, 4),
3747            ::fbthrift::Field::new("stop_time", ::fbthrift::TType::I64, 6),
3748        ];
3749        let mut field_id = ::std::option::Option::None;
3750        let mut field_cmd = ::std::option::Option::None;
3751        let mut field_paras = ::std::option::Option::None;
3752        let mut field_status = ::std::option::Option::None;
3753        let mut field_start_time = ::std::option::Option::None;
3754        let mut field_stop_time = ::std::option::Option::None;
3755        let _ = p.read_struct_begin(|_| ())?;
3756        loop {
3757            let (_, fty, fid) = p.read_field_begin(|_| (), FIELDS)?;
3758            match (fty, fid as ::std::primitive::i32) {
3759                (::fbthrift::TType::Stop, _) => break,
3760                (::fbthrift::TType::I32, 1) => field_id = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
3761                (::fbthrift::TType::String, 2) => field_cmd = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
3762                (::fbthrift::TType::List, 3) => field_paras = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
3763                (::fbthrift::TType::I32, 4) => field_status = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
3764                (::fbthrift::TType::I64, 5) => field_start_time = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
3765                (::fbthrift::TType::I64, 6) => field_stop_time = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
3766                (fty, _) => p.skip(fty)?,
3767            }
3768            p.read_field_end()?;
3769        }
3770        p.read_struct_end()?;
3771        ::std::result::Result::Ok(Self {
3772            id: field_id.unwrap_or_default(),
3773            cmd: field_cmd.unwrap_or_default(),
3774            paras: field_paras.unwrap_or_default(),
3775            status: field_status.unwrap_or_default(),
3776            start_time: field_start_time.unwrap_or_default(),
3777            stop_time: field_stop_time.unwrap_or_default(),
3778            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
3779        })
3780    }
3781}
3782
3783
3784#[allow(clippy::derivable_impls)]
3785impl ::std::default::Default for self::TaskDesc {
3786    fn default() -> Self {
3787        Self {
3788            task_id: ::std::default::Default::default(),
3789            host: ::std::default::Default::default(),
3790            status: ::std::default::Default::default(),
3791            start_time: ::std::default::Default::default(),
3792            stop_time: ::std::default::Default::default(),
3793            job_id: ::std::default::Default::default(),
3794            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
3795        }
3796    }
3797}
3798
3799impl ::std::fmt::Debug for self::TaskDesc {
3800    fn fmt(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
3801        formatter
3802            .debug_struct("TaskDesc")
3803            .field("task_id", &self.task_id)
3804            .field("host", &self.host)
3805            .field("status", &self.status)
3806            .field("start_time", &self.start_time)
3807            .field("stop_time", &self.stop_time)
3808            .field("job_id", &self.job_id)
3809            .finish()
3810    }
3811}
3812
3813unsafe impl ::std::marker::Send for self::TaskDesc {}
3814unsafe impl ::std::marker::Sync for self::TaskDesc {}
3815
3816impl ::fbthrift::GetTType for self::TaskDesc {
3817    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::Struct;
3818}
3819
3820impl<P> ::fbthrift::Serialize<P> for self::TaskDesc
3821where
3822    P: ::fbthrift::ProtocolWriter,
3823{
3824    fn write(&self, p: &mut P) {
3825        p.write_struct_begin("TaskDesc");
3826        p.write_field_begin("task_id", ::fbthrift::TType::I32, 1);
3827        ::fbthrift::Serialize::write(&self.task_id, p);
3828        p.write_field_end();
3829        p.write_field_begin("host", ::fbthrift::TType::Struct, 2);
3830        ::fbthrift::Serialize::write(&self.host, p);
3831        p.write_field_end();
3832        p.write_field_begin("status", ::fbthrift::TType::I32, 3);
3833        ::fbthrift::Serialize::write(&self.status, p);
3834        p.write_field_end();
3835        p.write_field_begin("start_time", ::fbthrift::TType::I64, 4);
3836        ::fbthrift::Serialize::write(&self.start_time, p);
3837        p.write_field_end();
3838        p.write_field_begin("stop_time", ::fbthrift::TType::I64, 5);
3839        ::fbthrift::Serialize::write(&self.stop_time, p);
3840        p.write_field_end();
3841        p.write_field_begin("job_id", ::fbthrift::TType::I32, 6);
3842        ::fbthrift::Serialize::write(&self.job_id, p);
3843        p.write_field_end();
3844        p.write_field_stop();
3845        p.write_struct_end();
3846    }
3847}
3848
3849impl<P> ::fbthrift::Deserialize<P> for self::TaskDesc
3850where
3851    P: ::fbthrift::ProtocolReader,
3852{
3853    fn read(p: &mut P) -> ::anyhow::Result<Self> {
3854        static FIELDS: &[::fbthrift::Field] = &[
3855            ::fbthrift::Field::new("host", ::fbthrift::TType::Struct, 2),
3856            ::fbthrift::Field::new("job_id", ::fbthrift::TType::I32, 6),
3857            ::fbthrift::Field::new("start_time", ::fbthrift::TType::I64, 4),
3858            ::fbthrift::Field::new("status", ::fbthrift::TType::I32, 3),
3859            ::fbthrift::Field::new("stop_time", ::fbthrift::TType::I64, 5),
3860            ::fbthrift::Field::new("task_id", ::fbthrift::TType::I32, 1),
3861        ];
3862        let mut field_task_id = ::std::option::Option::None;
3863        let mut field_host = ::std::option::Option::None;
3864        let mut field_status = ::std::option::Option::None;
3865        let mut field_start_time = ::std::option::Option::None;
3866        let mut field_stop_time = ::std::option::Option::None;
3867        let mut field_job_id = ::std::option::Option::None;
3868        let _ = p.read_struct_begin(|_| ())?;
3869        loop {
3870            let (_, fty, fid) = p.read_field_begin(|_| (), FIELDS)?;
3871            match (fty, fid as ::std::primitive::i32) {
3872                (::fbthrift::TType::Stop, _) => break,
3873                (::fbthrift::TType::I32, 1) => field_task_id = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
3874                (::fbthrift::TType::Struct, 2) => field_host = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
3875                (::fbthrift::TType::I32, 3) => field_status = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
3876                (::fbthrift::TType::I64, 4) => field_start_time = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
3877                (::fbthrift::TType::I64, 5) => field_stop_time = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
3878                (::fbthrift::TType::I32, 6) => field_job_id = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
3879                (fty, _) => p.skip(fty)?,
3880            }
3881            p.read_field_end()?;
3882        }
3883        p.read_struct_end()?;
3884        ::std::result::Result::Ok(Self {
3885            task_id: field_task_id.unwrap_or_default(),
3886            host: field_host.unwrap_or_default(),
3887            status: field_status.unwrap_or_default(),
3888            start_time: field_start_time.unwrap_or_default(),
3889            stop_time: field_stop_time.unwrap_or_default(),
3890            job_id: field_job_id.unwrap_or_default(),
3891            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
3892        })
3893    }
3894}
3895
3896
3897#[allow(clippy::derivable_impls)]
3898impl ::std::default::Default for self::AdminJobResult {
3899    fn default() -> Self {
3900        Self {
3901            job_id: ::std::option::Option::None,
3902            job_desc: ::std::option::Option::None,
3903            task_desc: ::std::option::Option::None,
3904            recovered_job_num: ::std::option::Option::None,
3905            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
3906        }
3907    }
3908}
3909
3910impl ::std::fmt::Debug for self::AdminJobResult {
3911    fn fmt(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
3912        formatter
3913            .debug_struct("AdminJobResult")
3914            .field("job_id", &self.job_id)
3915            .field("job_desc", &self.job_desc)
3916            .field("task_desc", &self.task_desc)
3917            .field("recovered_job_num", &self.recovered_job_num)
3918            .finish()
3919    }
3920}
3921
3922unsafe impl ::std::marker::Send for self::AdminJobResult {}
3923unsafe impl ::std::marker::Sync for self::AdminJobResult {}
3924
3925impl ::fbthrift::GetTType for self::AdminJobResult {
3926    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::Struct;
3927}
3928
3929impl<P> ::fbthrift::Serialize<P> for self::AdminJobResult
3930where
3931    P: ::fbthrift::ProtocolWriter,
3932{
3933    fn write(&self, p: &mut P) {
3934        p.write_struct_begin("AdminJobResult");
3935        if let ::std::option::Option::Some(some) = &self.job_id {
3936            p.write_field_begin("job_id", ::fbthrift::TType::I32, 1);
3937            ::fbthrift::Serialize::write(some, p);
3938            p.write_field_end();
3939        }
3940        if let ::std::option::Option::Some(some) = &self.job_desc {
3941            p.write_field_begin("job_desc", ::fbthrift::TType::List, 2);
3942            ::fbthrift::Serialize::write(some, p);
3943            p.write_field_end();
3944        }
3945        if let ::std::option::Option::Some(some) = &self.task_desc {
3946            p.write_field_begin("task_desc", ::fbthrift::TType::List, 3);
3947            ::fbthrift::Serialize::write(some, p);
3948            p.write_field_end();
3949        }
3950        if let ::std::option::Option::Some(some) = &self.recovered_job_num {
3951            p.write_field_begin("recovered_job_num", ::fbthrift::TType::I32, 4);
3952            ::fbthrift::Serialize::write(some, p);
3953            p.write_field_end();
3954        }
3955        p.write_field_stop();
3956        p.write_struct_end();
3957    }
3958}
3959
3960impl<P> ::fbthrift::Deserialize<P> for self::AdminJobResult
3961where
3962    P: ::fbthrift::ProtocolReader,
3963{
3964    fn read(p: &mut P) -> ::anyhow::Result<Self> {
3965        static FIELDS: &[::fbthrift::Field] = &[
3966            ::fbthrift::Field::new("job_desc", ::fbthrift::TType::List, 2),
3967            ::fbthrift::Field::new("job_id", ::fbthrift::TType::I32, 1),
3968            ::fbthrift::Field::new("recovered_job_num", ::fbthrift::TType::I32, 4),
3969            ::fbthrift::Field::new("task_desc", ::fbthrift::TType::List, 3),
3970        ];
3971        let mut field_job_id = ::std::option::Option::None;
3972        let mut field_job_desc = ::std::option::Option::None;
3973        let mut field_task_desc = ::std::option::Option::None;
3974        let mut field_recovered_job_num = ::std::option::Option::None;
3975        let _ = p.read_struct_begin(|_| ())?;
3976        loop {
3977            let (_, fty, fid) = p.read_field_begin(|_| (), FIELDS)?;
3978            match (fty, fid as ::std::primitive::i32) {
3979                (::fbthrift::TType::Stop, _) => break,
3980                (::fbthrift::TType::I32, 1) => field_job_id = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
3981                (::fbthrift::TType::List, 2) => field_job_desc = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
3982                (::fbthrift::TType::List, 3) => field_task_desc = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
3983                (::fbthrift::TType::I32, 4) => field_recovered_job_num = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
3984                (fty, _) => p.skip(fty)?,
3985            }
3986            p.read_field_end()?;
3987        }
3988        p.read_struct_end()?;
3989        ::std::result::Result::Ok(Self {
3990            job_id: field_job_id,
3991            job_desc: field_job_desc,
3992            task_desc: field_task_desc,
3993            recovered_job_num: field_recovered_job_num,
3994            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
3995        })
3996    }
3997}
3998
3999
4000#[allow(clippy::derivable_impls)]
4001impl ::std::default::Default for self::AdminJobResp {
4002    fn default() -> Self {
4003        Self {
4004            code: ::std::default::Default::default(),
4005            leader: ::std::default::Default::default(),
4006            result: ::std::default::Default::default(),
4007            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
4008        }
4009    }
4010}
4011
4012impl ::std::fmt::Debug for self::AdminJobResp {
4013    fn fmt(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
4014        formatter
4015            .debug_struct("AdminJobResp")
4016            .field("code", &self.code)
4017            .field("leader", &self.leader)
4018            .field("result", &self.result)
4019            .finish()
4020    }
4021}
4022
4023unsafe impl ::std::marker::Send for self::AdminJobResp {}
4024unsafe impl ::std::marker::Sync for self::AdminJobResp {}
4025
4026impl ::fbthrift::GetTType for self::AdminJobResp {
4027    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::Struct;
4028}
4029
4030impl<P> ::fbthrift::Serialize<P> for self::AdminJobResp
4031where
4032    P: ::fbthrift::ProtocolWriter,
4033{
4034    fn write(&self, p: &mut P) {
4035        p.write_struct_begin("AdminJobResp");
4036        p.write_field_begin("code", ::fbthrift::TType::I32, 1);
4037        ::fbthrift::Serialize::write(&self.code, p);
4038        p.write_field_end();
4039        p.write_field_begin("leader", ::fbthrift::TType::Struct, 2);
4040        ::fbthrift::Serialize::write(&self.leader, p);
4041        p.write_field_end();
4042        p.write_field_begin("result", ::fbthrift::TType::Struct, 3);
4043        ::fbthrift::Serialize::write(&self.result, p);
4044        p.write_field_end();
4045        p.write_field_stop();
4046        p.write_struct_end();
4047    }
4048}
4049
4050impl<P> ::fbthrift::Deserialize<P> for self::AdminJobResp
4051where
4052    P: ::fbthrift::ProtocolReader,
4053{
4054    fn read(p: &mut P) -> ::anyhow::Result<Self> {
4055        static FIELDS: &[::fbthrift::Field] = &[
4056            ::fbthrift::Field::new("code", ::fbthrift::TType::I32, 1),
4057            ::fbthrift::Field::new("leader", ::fbthrift::TType::Struct, 2),
4058            ::fbthrift::Field::new("result", ::fbthrift::TType::Struct, 3),
4059        ];
4060        let mut field_code = ::std::option::Option::None;
4061        let mut field_leader = ::std::option::Option::None;
4062        let mut field_result = ::std::option::Option::None;
4063        let _ = p.read_struct_begin(|_| ())?;
4064        loop {
4065            let (_, fty, fid) = p.read_field_begin(|_| (), FIELDS)?;
4066            match (fty, fid as ::std::primitive::i32) {
4067                (::fbthrift::TType::Stop, _) => break,
4068                (::fbthrift::TType::I32, 1) => field_code = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
4069                (::fbthrift::TType::Struct, 2) => field_leader = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
4070                (::fbthrift::TType::Struct, 3) => field_result = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
4071                (fty, _) => p.skip(fty)?,
4072            }
4073            p.read_field_end()?;
4074        }
4075        p.read_struct_end()?;
4076        ::std::result::Result::Ok(Self {
4077            code: field_code.unwrap_or_default(),
4078            leader: field_leader.unwrap_or_default(),
4079            result: field_result.unwrap_or_default(),
4080            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
4081        })
4082    }
4083}
4084
4085
4086#[allow(clippy::derivable_impls)]
4087impl ::std::default::Default for self::ListSpacesReq {
4088    fn default() -> Self {
4089        Self {
4090            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
4091        }
4092    }
4093}
4094
4095impl ::std::fmt::Debug for self::ListSpacesReq {
4096    fn fmt(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
4097        formatter
4098            .debug_struct("ListSpacesReq")
4099            .finish()
4100    }
4101}
4102
4103unsafe impl ::std::marker::Send for self::ListSpacesReq {}
4104unsafe impl ::std::marker::Sync for self::ListSpacesReq {}
4105
4106impl ::fbthrift::GetTType for self::ListSpacesReq {
4107    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::Struct;
4108}
4109
4110impl<P> ::fbthrift::Serialize<P> for self::ListSpacesReq
4111where
4112    P: ::fbthrift::ProtocolWriter,
4113{
4114    fn write(&self, p: &mut P) {
4115        p.write_struct_begin("ListSpacesReq");
4116        p.write_field_stop();
4117        p.write_struct_end();
4118    }
4119}
4120
4121impl<P> ::fbthrift::Deserialize<P> for self::ListSpacesReq
4122where
4123    P: ::fbthrift::ProtocolReader,
4124{
4125    fn read(p: &mut P) -> ::anyhow::Result<Self> {
4126        static FIELDS: &[::fbthrift::Field] = &[
4127        ];
4128        let _ = p.read_struct_begin(|_| ())?;
4129        loop {
4130            let (_, fty, fid) = p.read_field_begin(|_| (), FIELDS)?;
4131            match (fty, fid as ::std::primitive::i32) {
4132                (::fbthrift::TType::Stop, _) => break,
4133                (fty, _) => p.skip(fty)?,
4134            }
4135            p.read_field_end()?;
4136        }
4137        p.read_struct_end()?;
4138        ::std::result::Result::Ok(Self {
4139            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
4140        })
4141    }
4142}
4143
4144
4145#[allow(clippy::derivable_impls)]
4146impl ::std::default::Default for self::ListSpacesResp {
4147    fn default() -> Self {
4148        Self {
4149            code: ::std::default::Default::default(),
4150            leader: ::std::default::Default::default(),
4151            spaces: ::std::default::Default::default(),
4152            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
4153        }
4154    }
4155}
4156
4157impl ::std::fmt::Debug for self::ListSpacesResp {
4158    fn fmt(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
4159        formatter
4160            .debug_struct("ListSpacesResp")
4161            .field("code", &self.code)
4162            .field("leader", &self.leader)
4163            .field("spaces", &self.spaces)
4164            .finish()
4165    }
4166}
4167
4168unsafe impl ::std::marker::Send for self::ListSpacesResp {}
4169unsafe impl ::std::marker::Sync for self::ListSpacesResp {}
4170
4171impl ::fbthrift::GetTType for self::ListSpacesResp {
4172    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::Struct;
4173}
4174
4175impl<P> ::fbthrift::Serialize<P> for self::ListSpacesResp
4176where
4177    P: ::fbthrift::ProtocolWriter,
4178{
4179    fn write(&self, p: &mut P) {
4180        p.write_struct_begin("ListSpacesResp");
4181        p.write_field_begin("code", ::fbthrift::TType::I32, 1);
4182        ::fbthrift::Serialize::write(&self.code, p);
4183        p.write_field_end();
4184        p.write_field_begin("leader", ::fbthrift::TType::Struct, 2);
4185        ::fbthrift::Serialize::write(&self.leader, p);
4186        p.write_field_end();
4187        p.write_field_begin("spaces", ::fbthrift::TType::List, 3);
4188        ::fbthrift::Serialize::write(&self.spaces, p);
4189        p.write_field_end();
4190        p.write_field_stop();
4191        p.write_struct_end();
4192    }
4193}
4194
4195impl<P> ::fbthrift::Deserialize<P> for self::ListSpacesResp
4196where
4197    P: ::fbthrift::ProtocolReader,
4198{
4199    fn read(p: &mut P) -> ::anyhow::Result<Self> {
4200        static FIELDS: &[::fbthrift::Field] = &[
4201            ::fbthrift::Field::new("code", ::fbthrift::TType::I32, 1),
4202            ::fbthrift::Field::new("leader", ::fbthrift::TType::Struct, 2),
4203            ::fbthrift::Field::new("spaces", ::fbthrift::TType::List, 3),
4204        ];
4205        let mut field_code = ::std::option::Option::None;
4206        let mut field_leader = ::std::option::Option::None;
4207        let mut field_spaces = ::std::option::Option::None;
4208        let _ = p.read_struct_begin(|_| ())?;
4209        loop {
4210            let (_, fty, fid) = p.read_field_begin(|_| (), FIELDS)?;
4211            match (fty, fid as ::std::primitive::i32) {
4212                (::fbthrift::TType::Stop, _) => break,
4213                (::fbthrift::TType::I32, 1) => field_code = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
4214                (::fbthrift::TType::Struct, 2) => field_leader = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
4215                (::fbthrift::TType::List, 3) => field_spaces = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
4216                (fty, _) => p.skip(fty)?,
4217            }
4218            p.read_field_end()?;
4219        }
4220        p.read_struct_end()?;
4221        ::std::result::Result::Ok(Self {
4222            code: field_code.unwrap_or_default(),
4223            leader: field_leader.unwrap_or_default(),
4224            spaces: field_spaces.unwrap_or_default(),
4225            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
4226        })
4227    }
4228}
4229
4230
4231#[allow(clippy::derivable_impls)]
4232impl ::std::default::Default for self::GetSpaceReq {
4233    fn default() -> Self {
4234        Self {
4235            space_name: ::std::default::Default::default(),
4236            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
4237        }
4238    }
4239}
4240
4241impl ::std::fmt::Debug for self::GetSpaceReq {
4242    fn fmt(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
4243        formatter
4244            .debug_struct("GetSpaceReq")
4245            .field("space_name", &self.space_name)
4246            .finish()
4247    }
4248}
4249
4250unsafe impl ::std::marker::Send for self::GetSpaceReq {}
4251unsafe impl ::std::marker::Sync for self::GetSpaceReq {}
4252
4253impl ::fbthrift::GetTType for self::GetSpaceReq {
4254    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::Struct;
4255}
4256
4257impl<P> ::fbthrift::Serialize<P> for self::GetSpaceReq
4258where
4259    P: ::fbthrift::ProtocolWriter,
4260{
4261    fn write(&self, p: &mut P) {
4262        p.write_struct_begin("GetSpaceReq");
4263        p.write_field_begin("space_name", ::fbthrift::TType::String, 1);
4264        ::fbthrift::Serialize::write(&self.space_name, p);
4265        p.write_field_end();
4266        p.write_field_stop();
4267        p.write_struct_end();
4268    }
4269}
4270
4271impl<P> ::fbthrift::Deserialize<P> for self::GetSpaceReq
4272where
4273    P: ::fbthrift::ProtocolReader,
4274{
4275    fn read(p: &mut P) -> ::anyhow::Result<Self> {
4276        static FIELDS: &[::fbthrift::Field] = &[
4277            ::fbthrift::Field::new("space_name", ::fbthrift::TType::String, 1),
4278        ];
4279        let mut field_space_name = ::std::option::Option::None;
4280        let _ = p.read_struct_begin(|_| ())?;
4281        loop {
4282            let (_, fty, fid) = p.read_field_begin(|_| (), FIELDS)?;
4283            match (fty, fid as ::std::primitive::i32) {
4284                (::fbthrift::TType::Stop, _) => break,
4285                (::fbthrift::TType::String, 1) => field_space_name = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
4286                (fty, _) => p.skip(fty)?,
4287            }
4288            p.read_field_end()?;
4289        }
4290        p.read_struct_end()?;
4291        ::std::result::Result::Ok(Self {
4292            space_name: field_space_name.unwrap_or_default(),
4293            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
4294        })
4295    }
4296}
4297
4298
4299#[allow(clippy::derivable_impls)]
4300impl ::std::default::Default for self::GetSpaceResp {
4301    fn default() -> Self {
4302        Self {
4303            code: ::std::default::Default::default(),
4304            leader: ::std::default::Default::default(),
4305            item: ::std::default::Default::default(),
4306            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
4307        }
4308    }
4309}
4310
4311impl ::std::fmt::Debug for self::GetSpaceResp {
4312    fn fmt(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
4313        formatter
4314            .debug_struct("GetSpaceResp")
4315            .field("code", &self.code)
4316            .field("leader", &self.leader)
4317            .field("item", &self.item)
4318            .finish()
4319    }
4320}
4321
4322unsafe impl ::std::marker::Send for self::GetSpaceResp {}
4323unsafe impl ::std::marker::Sync for self::GetSpaceResp {}
4324
4325impl ::fbthrift::GetTType for self::GetSpaceResp {
4326    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::Struct;
4327}
4328
4329impl<P> ::fbthrift::Serialize<P> for self::GetSpaceResp
4330where
4331    P: ::fbthrift::ProtocolWriter,
4332{
4333    fn write(&self, p: &mut P) {
4334        p.write_struct_begin("GetSpaceResp");
4335        p.write_field_begin("code", ::fbthrift::TType::I32, 1);
4336        ::fbthrift::Serialize::write(&self.code, p);
4337        p.write_field_end();
4338        p.write_field_begin("leader", ::fbthrift::TType::Struct, 2);
4339        ::fbthrift::Serialize::write(&self.leader, p);
4340        p.write_field_end();
4341        p.write_field_begin("item", ::fbthrift::TType::Struct, 3);
4342        ::fbthrift::Serialize::write(&self.item, p);
4343        p.write_field_end();
4344        p.write_field_stop();
4345        p.write_struct_end();
4346    }
4347}
4348
4349impl<P> ::fbthrift::Deserialize<P> for self::GetSpaceResp
4350where
4351    P: ::fbthrift::ProtocolReader,
4352{
4353    fn read(p: &mut P) -> ::anyhow::Result<Self> {
4354        static FIELDS: &[::fbthrift::Field] = &[
4355            ::fbthrift::Field::new("code", ::fbthrift::TType::I32, 1),
4356            ::fbthrift::Field::new("item", ::fbthrift::TType::Struct, 3),
4357            ::fbthrift::Field::new("leader", ::fbthrift::TType::Struct, 2),
4358        ];
4359        let mut field_code = ::std::option::Option::None;
4360        let mut field_leader = ::std::option::Option::None;
4361        let mut field_item = ::std::option::Option::None;
4362        let _ = p.read_struct_begin(|_| ())?;
4363        loop {
4364            let (_, fty, fid) = p.read_field_begin(|_| (), FIELDS)?;
4365            match (fty, fid as ::std::primitive::i32) {
4366                (::fbthrift::TType::Stop, _) => break,
4367                (::fbthrift::TType::I32, 1) => field_code = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
4368                (::fbthrift::TType::Struct, 2) => field_leader = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
4369                (::fbthrift::TType::Struct, 3) => field_item = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
4370                (fty, _) => p.skip(fty)?,
4371            }
4372            p.read_field_end()?;
4373        }
4374        p.read_struct_end()?;
4375        ::std::result::Result::Ok(Self {
4376            code: field_code.unwrap_or_default(),
4377            leader: field_leader.unwrap_or_default(),
4378            item: field_item.unwrap_or_default(),
4379            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
4380        })
4381    }
4382}
4383
4384
4385#[allow(clippy::derivable_impls)]
4386impl ::std::default::Default for self::CreateTagReq {
4387    fn default() -> Self {
4388        Self {
4389            space_id: ::std::default::Default::default(),
4390            tag_name: ::std::default::Default::default(),
4391            schema: ::std::default::Default::default(),
4392            if_not_exists: ::std::default::Default::default(),
4393            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
4394        }
4395    }
4396}
4397
4398impl ::std::fmt::Debug for self::CreateTagReq {
4399    fn fmt(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
4400        formatter
4401            .debug_struct("CreateTagReq")
4402            .field("space_id", &self.space_id)
4403            .field("tag_name", &self.tag_name)
4404            .field("schema", &self.schema)
4405            .field("if_not_exists", &self.if_not_exists)
4406            .finish()
4407    }
4408}
4409
4410unsafe impl ::std::marker::Send for self::CreateTagReq {}
4411unsafe impl ::std::marker::Sync for self::CreateTagReq {}
4412
4413impl ::fbthrift::GetTType for self::CreateTagReq {
4414    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::Struct;
4415}
4416
4417impl<P> ::fbthrift::Serialize<P> for self::CreateTagReq
4418where
4419    P: ::fbthrift::ProtocolWriter,
4420{
4421    fn write(&self, p: &mut P) {
4422        p.write_struct_begin("CreateTagReq");
4423        p.write_field_begin("space_id", ::fbthrift::TType::I32, 1);
4424        ::fbthrift::Serialize::write(&self.space_id, p);
4425        p.write_field_end();
4426        p.write_field_begin("tag_name", ::fbthrift::TType::String, 2);
4427        ::fbthrift::Serialize::write(&self.tag_name, p);
4428        p.write_field_end();
4429        p.write_field_begin("schema", ::fbthrift::TType::Struct, 3);
4430        ::fbthrift::Serialize::write(&self.schema, p);
4431        p.write_field_end();
4432        p.write_field_begin("if_not_exists", ::fbthrift::TType::Bool, 4);
4433        ::fbthrift::Serialize::write(&self.if_not_exists, p);
4434        p.write_field_end();
4435        p.write_field_stop();
4436        p.write_struct_end();
4437    }
4438}
4439
4440impl<P> ::fbthrift::Deserialize<P> for self::CreateTagReq
4441where
4442    P: ::fbthrift::ProtocolReader,
4443{
4444    fn read(p: &mut P) -> ::anyhow::Result<Self> {
4445        static FIELDS: &[::fbthrift::Field] = &[
4446            ::fbthrift::Field::new("if_not_exists", ::fbthrift::TType::Bool, 4),
4447            ::fbthrift::Field::new("schema", ::fbthrift::TType::Struct, 3),
4448            ::fbthrift::Field::new("space_id", ::fbthrift::TType::I32, 1),
4449            ::fbthrift::Field::new("tag_name", ::fbthrift::TType::String, 2),
4450        ];
4451        let mut field_space_id = ::std::option::Option::None;
4452        let mut field_tag_name = ::std::option::Option::None;
4453        let mut field_schema = ::std::option::Option::None;
4454        let mut field_if_not_exists = ::std::option::Option::None;
4455        let _ = p.read_struct_begin(|_| ())?;
4456        loop {
4457            let (_, fty, fid) = p.read_field_begin(|_| (), FIELDS)?;
4458            match (fty, fid as ::std::primitive::i32) {
4459                (::fbthrift::TType::Stop, _) => break,
4460                (::fbthrift::TType::I32, 1) => field_space_id = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
4461                (::fbthrift::TType::String, 2) => field_tag_name = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
4462                (::fbthrift::TType::Struct, 3) => field_schema = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
4463                (::fbthrift::TType::Bool, 4) => field_if_not_exists = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
4464                (fty, _) => p.skip(fty)?,
4465            }
4466            p.read_field_end()?;
4467        }
4468        p.read_struct_end()?;
4469        ::std::result::Result::Ok(Self {
4470            space_id: field_space_id.unwrap_or_default(),
4471            tag_name: field_tag_name.unwrap_or_default(),
4472            schema: field_schema.unwrap_or_default(),
4473            if_not_exists: field_if_not_exists.unwrap_or_default(),
4474            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
4475        })
4476    }
4477}
4478
4479
4480#[allow(clippy::derivable_impls)]
4481impl ::std::default::Default for self::AlterTagReq {
4482    fn default() -> Self {
4483        Self {
4484            space_id: ::std::default::Default::default(),
4485            tag_name: ::std::default::Default::default(),
4486            tag_items: ::std::default::Default::default(),
4487            schema_prop: ::std::default::Default::default(),
4488            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
4489        }
4490    }
4491}
4492
4493impl ::std::fmt::Debug for self::AlterTagReq {
4494    fn fmt(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
4495        formatter
4496            .debug_struct("AlterTagReq")
4497            .field("space_id", &self.space_id)
4498            .field("tag_name", &self.tag_name)
4499            .field("tag_items", &self.tag_items)
4500            .field("schema_prop", &self.schema_prop)
4501            .finish()
4502    }
4503}
4504
4505unsafe impl ::std::marker::Send for self::AlterTagReq {}
4506unsafe impl ::std::marker::Sync for self::AlterTagReq {}
4507
4508impl ::fbthrift::GetTType for self::AlterTagReq {
4509    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::Struct;
4510}
4511
4512impl<P> ::fbthrift::Serialize<P> for self::AlterTagReq
4513where
4514    P: ::fbthrift::ProtocolWriter,
4515{
4516    fn write(&self, p: &mut P) {
4517        p.write_struct_begin("AlterTagReq");
4518        p.write_field_begin("space_id", ::fbthrift::TType::I32, 1);
4519        ::fbthrift::Serialize::write(&self.space_id, p);
4520        p.write_field_end();
4521        p.write_field_begin("tag_name", ::fbthrift::TType::String, 2);
4522        ::fbthrift::Serialize::write(&self.tag_name, p);
4523        p.write_field_end();
4524        p.write_field_begin("tag_items", ::fbthrift::TType::List, 3);
4525        ::fbthrift::Serialize::write(&self.tag_items, p);
4526        p.write_field_end();
4527        p.write_field_begin("schema_prop", ::fbthrift::TType::Struct, 4);
4528        ::fbthrift::Serialize::write(&self.schema_prop, p);
4529        p.write_field_end();
4530        p.write_field_stop();
4531        p.write_struct_end();
4532    }
4533}
4534
4535impl<P> ::fbthrift::Deserialize<P> for self::AlterTagReq
4536where
4537    P: ::fbthrift::ProtocolReader,
4538{
4539    fn read(p: &mut P) -> ::anyhow::Result<Self> {
4540        static FIELDS: &[::fbthrift::Field] = &[
4541            ::fbthrift::Field::new("schema_prop", ::fbthrift::TType::Struct, 4),
4542            ::fbthrift::Field::new("space_id", ::fbthrift::TType::I32, 1),
4543            ::fbthrift::Field::new("tag_items", ::fbthrift::TType::List, 3),
4544            ::fbthrift::Field::new("tag_name", ::fbthrift::TType::String, 2),
4545        ];
4546        let mut field_space_id = ::std::option::Option::None;
4547        let mut field_tag_name = ::std::option::Option::None;
4548        let mut field_tag_items = ::std::option::Option::None;
4549        let mut field_schema_prop = ::std::option::Option::None;
4550        let _ = p.read_struct_begin(|_| ())?;
4551        loop {
4552            let (_, fty, fid) = p.read_field_begin(|_| (), FIELDS)?;
4553            match (fty, fid as ::std::primitive::i32) {
4554                (::fbthrift::TType::Stop, _) => break,
4555                (::fbthrift::TType::I32, 1) => field_space_id = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
4556                (::fbthrift::TType::String, 2) => field_tag_name = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
4557                (::fbthrift::TType::List, 3) => field_tag_items = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
4558                (::fbthrift::TType::Struct, 4) => field_schema_prop = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
4559                (fty, _) => p.skip(fty)?,
4560            }
4561            p.read_field_end()?;
4562        }
4563        p.read_struct_end()?;
4564        ::std::result::Result::Ok(Self {
4565            space_id: field_space_id.unwrap_or_default(),
4566            tag_name: field_tag_name.unwrap_or_default(),
4567            tag_items: field_tag_items.unwrap_or_default(),
4568            schema_prop: field_schema_prop.unwrap_or_default(),
4569            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
4570        })
4571    }
4572}
4573
4574
4575#[allow(clippy::derivable_impls)]
4576impl ::std::default::Default for self::DropTagReq {
4577    fn default() -> Self {
4578        Self {
4579            space_id: ::std::default::Default::default(),
4580            tag_name: ::std::default::Default::default(),
4581            if_exists: ::std::default::Default::default(),
4582            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
4583        }
4584    }
4585}
4586
4587impl ::std::fmt::Debug for self::DropTagReq {
4588    fn fmt(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
4589        formatter
4590            .debug_struct("DropTagReq")
4591            .field("space_id", &self.space_id)
4592            .field("tag_name", &self.tag_name)
4593            .field("if_exists", &self.if_exists)
4594            .finish()
4595    }
4596}
4597
4598unsafe impl ::std::marker::Send for self::DropTagReq {}
4599unsafe impl ::std::marker::Sync for self::DropTagReq {}
4600
4601impl ::fbthrift::GetTType for self::DropTagReq {
4602    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::Struct;
4603}
4604
4605impl<P> ::fbthrift::Serialize<P> for self::DropTagReq
4606where
4607    P: ::fbthrift::ProtocolWriter,
4608{
4609    fn write(&self, p: &mut P) {
4610        p.write_struct_begin("DropTagReq");
4611        p.write_field_begin("space_id", ::fbthrift::TType::I32, 1);
4612        ::fbthrift::Serialize::write(&self.space_id, p);
4613        p.write_field_end();
4614        p.write_field_begin("tag_name", ::fbthrift::TType::String, 2);
4615        ::fbthrift::Serialize::write(&self.tag_name, p);
4616        p.write_field_end();
4617        p.write_field_begin("if_exists", ::fbthrift::TType::Bool, 3);
4618        ::fbthrift::Serialize::write(&self.if_exists, p);
4619        p.write_field_end();
4620        p.write_field_stop();
4621        p.write_struct_end();
4622    }
4623}
4624
4625impl<P> ::fbthrift::Deserialize<P> for self::DropTagReq
4626where
4627    P: ::fbthrift::ProtocolReader,
4628{
4629    fn read(p: &mut P) -> ::anyhow::Result<Self> {
4630        static FIELDS: &[::fbthrift::Field] = &[
4631            ::fbthrift::Field::new("if_exists", ::fbthrift::TType::Bool, 3),
4632            ::fbthrift::Field::new("space_id", ::fbthrift::TType::I32, 1),
4633            ::fbthrift::Field::new("tag_name", ::fbthrift::TType::String, 2),
4634        ];
4635        let mut field_space_id = ::std::option::Option::None;
4636        let mut field_tag_name = ::std::option::Option::None;
4637        let mut field_if_exists = ::std::option::Option::None;
4638        let _ = p.read_struct_begin(|_| ())?;
4639        loop {
4640            let (_, fty, fid) = p.read_field_begin(|_| (), FIELDS)?;
4641            match (fty, fid as ::std::primitive::i32) {
4642                (::fbthrift::TType::Stop, _) => break,
4643                (::fbthrift::TType::I32, 1) => field_space_id = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
4644                (::fbthrift::TType::String, 2) => field_tag_name = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
4645                (::fbthrift::TType::Bool, 3) => field_if_exists = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
4646                (fty, _) => p.skip(fty)?,
4647            }
4648            p.read_field_end()?;
4649        }
4650        p.read_struct_end()?;
4651        ::std::result::Result::Ok(Self {
4652            space_id: field_space_id.unwrap_or_default(),
4653            tag_name: field_tag_name.unwrap_or_default(),
4654            if_exists: field_if_exists.unwrap_or_default(),
4655            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
4656        })
4657    }
4658}
4659
4660
4661#[allow(clippy::derivable_impls)]
4662impl ::std::default::Default for self::ListTagsReq {
4663    fn default() -> Self {
4664        Self {
4665            space_id: ::std::default::Default::default(),
4666            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
4667        }
4668    }
4669}
4670
4671impl ::std::fmt::Debug for self::ListTagsReq {
4672    fn fmt(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
4673        formatter
4674            .debug_struct("ListTagsReq")
4675            .field("space_id", &self.space_id)
4676            .finish()
4677    }
4678}
4679
4680unsafe impl ::std::marker::Send for self::ListTagsReq {}
4681unsafe impl ::std::marker::Sync for self::ListTagsReq {}
4682
4683impl ::fbthrift::GetTType for self::ListTagsReq {
4684    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::Struct;
4685}
4686
4687impl<P> ::fbthrift::Serialize<P> for self::ListTagsReq
4688where
4689    P: ::fbthrift::ProtocolWriter,
4690{
4691    fn write(&self, p: &mut P) {
4692        p.write_struct_begin("ListTagsReq");
4693        p.write_field_begin("space_id", ::fbthrift::TType::I32, 1);
4694        ::fbthrift::Serialize::write(&self.space_id, p);
4695        p.write_field_end();
4696        p.write_field_stop();
4697        p.write_struct_end();
4698    }
4699}
4700
4701impl<P> ::fbthrift::Deserialize<P> for self::ListTagsReq
4702where
4703    P: ::fbthrift::ProtocolReader,
4704{
4705    fn read(p: &mut P) -> ::anyhow::Result<Self> {
4706        static FIELDS: &[::fbthrift::Field] = &[
4707            ::fbthrift::Field::new("space_id", ::fbthrift::TType::I32, 1),
4708        ];
4709        let mut field_space_id = ::std::option::Option::None;
4710        let _ = p.read_struct_begin(|_| ())?;
4711        loop {
4712            let (_, fty, fid) = p.read_field_begin(|_| (), FIELDS)?;
4713            match (fty, fid as ::std::primitive::i32) {
4714                (::fbthrift::TType::Stop, _) => break,
4715                (::fbthrift::TType::I32, 1) => field_space_id = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
4716                (fty, _) => p.skip(fty)?,
4717            }
4718            p.read_field_end()?;
4719        }
4720        p.read_struct_end()?;
4721        ::std::result::Result::Ok(Self {
4722            space_id: field_space_id.unwrap_or_default(),
4723            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
4724        })
4725    }
4726}
4727
4728
4729#[allow(clippy::derivable_impls)]
4730impl ::std::default::Default for self::ListTagsResp {
4731    fn default() -> Self {
4732        Self {
4733            code: ::std::default::Default::default(),
4734            leader: ::std::default::Default::default(),
4735            tags: ::std::default::Default::default(),
4736            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
4737        }
4738    }
4739}
4740
4741impl ::std::fmt::Debug for self::ListTagsResp {
4742    fn fmt(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
4743        formatter
4744            .debug_struct("ListTagsResp")
4745            .field("code", &self.code)
4746            .field("leader", &self.leader)
4747            .field("tags", &self.tags)
4748            .finish()
4749    }
4750}
4751
4752unsafe impl ::std::marker::Send for self::ListTagsResp {}
4753unsafe impl ::std::marker::Sync for self::ListTagsResp {}
4754
4755impl ::fbthrift::GetTType for self::ListTagsResp {
4756    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::Struct;
4757}
4758
4759impl<P> ::fbthrift::Serialize<P> for self::ListTagsResp
4760where
4761    P: ::fbthrift::ProtocolWriter,
4762{
4763    fn write(&self, p: &mut P) {
4764        p.write_struct_begin("ListTagsResp");
4765        p.write_field_begin("code", ::fbthrift::TType::I32, 1);
4766        ::fbthrift::Serialize::write(&self.code, p);
4767        p.write_field_end();
4768        p.write_field_begin("leader", ::fbthrift::TType::Struct, 2);
4769        ::fbthrift::Serialize::write(&self.leader, p);
4770        p.write_field_end();
4771        p.write_field_begin("tags", ::fbthrift::TType::List, 3);
4772        ::fbthrift::Serialize::write(&self.tags, p);
4773        p.write_field_end();
4774        p.write_field_stop();
4775        p.write_struct_end();
4776    }
4777}
4778
4779impl<P> ::fbthrift::Deserialize<P> for self::ListTagsResp
4780where
4781    P: ::fbthrift::ProtocolReader,
4782{
4783    fn read(p: &mut P) -> ::anyhow::Result<Self> {
4784        static FIELDS: &[::fbthrift::Field] = &[
4785            ::fbthrift::Field::new("code", ::fbthrift::TType::I32, 1),
4786            ::fbthrift::Field::new("leader", ::fbthrift::TType::Struct, 2),
4787            ::fbthrift::Field::new("tags", ::fbthrift::TType::List, 3),
4788        ];
4789        let mut field_code = ::std::option::Option::None;
4790        let mut field_leader = ::std::option::Option::None;
4791        let mut field_tags = ::std::option::Option::None;
4792        let _ = p.read_struct_begin(|_| ())?;
4793        loop {
4794            let (_, fty, fid) = p.read_field_begin(|_| (), FIELDS)?;
4795            match (fty, fid as ::std::primitive::i32) {
4796                (::fbthrift::TType::Stop, _) => break,
4797                (::fbthrift::TType::I32, 1) => field_code = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
4798                (::fbthrift::TType::Struct, 2) => field_leader = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
4799                (::fbthrift::TType::List, 3) => field_tags = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
4800                (fty, _) => p.skip(fty)?,
4801            }
4802            p.read_field_end()?;
4803        }
4804        p.read_struct_end()?;
4805        ::std::result::Result::Ok(Self {
4806            code: field_code.unwrap_or_default(),
4807            leader: field_leader.unwrap_or_default(),
4808            tags: field_tags.unwrap_or_default(),
4809            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
4810        })
4811    }
4812}
4813
4814
4815#[allow(clippy::derivable_impls)]
4816impl ::std::default::Default for self::GetTagReq {
4817    fn default() -> Self {
4818        Self {
4819            space_id: ::std::default::Default::default(),
4820            tag_name: ::std::default::Default::default(),
4821            version: ::std::default::Default::default(),
4822            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
4823        }
4824    }
4825}
4826
4827impl ::std::fmt::Debug for self::GetTagReq {
4828    fn fmt(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
4829        formatter
4830            .debug_struct("GetTagReq")
4831            .field("space_id", &self.space_id)
4832            .field("tag_name", &self.tag_name)
4833            .field("version", &self.version)
4834            .finish()
4835    }
4836}
4837
4838unsafe impl ::std::marker::Send for self::GetTagReq {}
4839unsafe impl ::std::marker::Sync for self::GetTagReq {}
4840
4841impl ::fbthrift::GetTType for self::GetTagReq {
4842    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::Struct;
4843}
4844
4845impl<P> ::fbthrift::Serialize<P> for self::GetTagReq
4846where
4847    P: ::fbthrift::ProtocolWriter,
4848{
4849    fn write(&self, p: &mut P) {
4850        p.write_struct_begin("GetTagReq");
4851        p.write_field_begin("space_id", ::fbthrift::TType::I32, 1);
4852        ::fbthrift::Serialize::write(&self.space_id, p);
4853        p.write_field_end();
4854        p.write_field_begin("tag_name", ::fbthrift::TType::String, 2);
4855        ::fbthrift::Serialize::write(&self.tag_name, p);
4856        p.write_field_end();
4857        p.write_field_begin("version", ::fbthrift::TType::I64, 3);
4858        ::fbthrift::Serialize::write(&self.version, p);
4859        p.write_field_end();
4860        p.write_field_stop();
4861        p.write_struct_end();
4862    }
4863}
4864
4865impl<P> ::fbthrift::Deserialize<P> for self::GetTagReq
4866where
4867    P: ::fbthrift::ProtocolReader,
4868{
4869    fn read(p: &mut P) -> ::anyhow::Result<Self> {
4870        static FIELDS: &[::fbthrift::Field] = &[
4871            ::fbthrift::Field::new("space_id", ::fbthrift::TType::I32, 1),
4872            ::fbthrift::Field::new("tag_name", ::fbthrift::TType::String, 2),
4873            ::fbthrift::Field::new("version", ::fbthrift::TType::I64, 3),
4874        ];
4875        let mut field_space_id = ::std::option::Option::None;
4876        let mut field_tag_name = ::std::option::Option::None;
4877        let mut field_version = ::std::option::Option::None;
4878        let _ = p.read_struct_begin(|_| ())?;
4879        loop {
4880            let (_, fty, fid) = p.read_field_begin(|_| (), FIELDS)?;
4881            match (fty, fid as ::std::primitive::i32) {
4882                (::fbthrift::TType::Stop, _) => break,
4883                (::fbthrift::TType::I32, 1) => field_space_id = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
4884                (::fbthrift::TType::String, 2) => field_tag_name = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
4885                (::fbthrift::TType::I64, 3) => field_version = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
4886                (fty, _) => p.skip(fty)?,
4887            }
4888            p.read_field_end()?;
4889        }
4890        p.read_struct_end()?;
4891        ::std::result::Result::Ok(Self {
4892            space_id: field_space_id.unwrap_or_default(),
4893            tag_name: field_tag_name.unwrap_or_default(),
4894            version: field_version.unwrap_or_default(),
4895            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
4896        })
4897    }
4898}
4899
4900
4901#[allow(clippy::derivable_impls)]
4902impl ::std::default::Default for self::GetTagResp {
4903    fn default() -> Self {
4904        Self {
4905            code: ::std::default::Default::default(),
4906            leader: ::std::default::Default::default(),
4907            schema: ::std::default::Default::default(),
4908            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
4909        }
4910    }
4911}
4912
4913impl ::std::fmt::Debug for self::GetTagResp {
4914    fn fmt(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
4915        formatter
4916            .debug_struct("GetTagResp")
4917            .field("code", &self.code)
4918            .field("leader", &self.leader)
4919            .field("schema", &self.schema)
4920            .finish()
4921    }
4922}
4923
4924unsafe impl ::std::marker::Send for self::GetTagResp {}
4925unsafe impl ::std::marker::Sync for self::GetTagResp {}
4926
4927impl ::fbthrift::GetTType for self::GetTagResp {
4928    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::Struct;
4929}
4930
4931impl<P> ::fbthrift::Serialize<P> for self::GetTagResp
4932where
4933    P: ::fbthrift::ProtocolWriter,
4934{
4935    fn write(&self, p: &mut P) {
4936        p.write_struct_begin("GetTagResp");
4937        p.write_field_begin("code", ::fbthrift::TType::I32, 1);
4938        ::fbthrift::Serialize::write(&self.code, p);
4939        p.write_field_end();
4940        p.write_field_begin("leader", ::fbthrift::TType::Struct, 2);
4941        ::fbthrift::Serialize::write(&self.leader, p);
4942        p.write_field_end();
4943        p.write_field_begin("schema", ::fbthrift::TType::Struct, 3);
4944        ::fbthrift::Serialize::write(&self.schema, p);
4945        p.write_field_end();
4946        p.write_field_stop();
4947        p.write_struct_end();
4948    }
4949}
4950
4951impl<P> ::fbthrift::Deserialize<P> for self::GetTagResp
4952where
4953    P: ::fbthrift::ProtocolReader,
4954{
4955    fn read(p: &mut P) -> ::anyhow::Result<Self> {
4956        static FIELDS: &[::fbthrift::Field] = &[
4957            ::fbthrift::Field::new("code", ::fbthrift::TType::I32, 1),
4958            ::fbthrift::Field::new("leader", ::fbthrift::TType::Struct, 2),
4959            ::fbthrift::Field::new("schema", ::fbthrift::TType::Struct, 3),
4960        ];
4961        let mut field_code = ::std::option::Option::None;
4962        let mut field_leader = ::std::option::Option::None;
4963        let mut field_schema = ::std::option::Option::None;
4964        let _ = p.read_struct_begin(|_| ())?;
4965        loop {
4966            let (_, fty, fid) = p.read_field_begin(|_| (), FIELDS)?;
4967            match (fty, fid as ::std::primitive::i32) {
4968                (::fbthrift::TType::Stop, _) => break,
4969                (::fbthrift::TType::I32, 1) => field_code = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
4970                (::fbthrift::TType::Struct, 2) => field_leader = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
4971                (::fbthrift::TType::Struct, 3) => field_schema = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
4972                (fty, _) => p.skip(fty)?,
4973            }
4974            p.read_field_end()?;
4975        }
4976        p.read_struct_end()?;
4977        ::std::result::Result::Ok(Self {
4978            code: field_code.unwrap_or_default(),
4979            leader: field_leader.unwrap_or_default(),
4980            schema: field_schema.unwrap_or_default(),
4981            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
4982        })
4983    }
4984}
4985
4986
4987#[allow(clippy::derivable_impls)]
4988impl ::std::default::Default for self::CreateEdgeReq {
4989    fn default() -> Self {
4990        Self {
4991            space_id: ::std::default::Default::default(),
4992            edge_name: ::std::default::Default::default(),
4993            schema: ::std::default::Default::default(),
4994            if_not_exists: ::std::default::Default::default(),
4995            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
4996        }
4997    }
4998}
4999
5000impl ::std::fmt::Debug for self::CreateEdgeReq {
5001    fn fmt(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
5002        formatter
5003            .debug_struct("CreateEdgeReq")
5004            .field("space_id", &self.space_id)
5005            .field("edge_name", &self.edge_name)
5006            .field("schema", &self.schema)
5007            .field("if_not_exists", &self.if_not_exists)
5008            .finish()
5009    }
5010}
5011
5012unsafe impl ::std::marker::Send for self::CreateEdgeReq {}
5013unsafe impl ::std::marker::Sync for self::CreateEdgeReq {}
5014
5015impl ::fbthrift::GetTType for self::CreateEdgeReq {
5016    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::Struct;
5017}
5018
5019impl<P> ::fbthrift::Serialize<P> for self::CreateEdgeReq
5020where
5021    P: ::fbthrift::ProtocolWriter,
5022{
5023    fn write(&self, p: &mut P) {
5024        p.write_struct_begin("CreateEdgeReq");
5025        p.write_field_begin("space_id", ::fbthrift::TType::I32, 1);
5026        ::fbthrift::Serialize::write(&self.space_id, p);
5027        p.write_field_end();
5028        p.write_field_begin("edge_name", ::fbthrift::TType::String, 2);
5029        ::fbthrift::Serialize::write(&self.edge_name, p);
5030        p.write_field_end();
5031        p.write_field_begin("schema", ::fbthrift::TType::Struct, 3);
5032        ::fbthrift::Serialize::write(&self.schema, p);
5033        p.write_field_end();
5034        p.write_field_begin("if_not_exists", ::fbthrift::TType::Bool, 4);
5035        ::fbthrift::Serialize::write(&self.if_not_exists, p);
5036        p.write_field_end();
5037        p.write_field_stop();
5038        p.write_struct_end();
5039    }
5040}
5041
5042impl<P> ::fbthrift::Deserialize<P> for self::CreateEdgeReq
5043where
5044    P: ::fbthrift::ProtocolReader,
5045{
5046    fn read(p: &mut P) -> ::anyhow::Result<Self> {
5047        static FIELDS: &[::fbthrift::Field] = &[
5048            ::fbthrift::Field::new("edge_name", ::fbthrift::TType::String, 2),
5049            ::fbthrift::Field::new("if_not_exists", ::fbthrift::TType::Bool, 4),
5050            ::fbthrift::Field::new("schema", ::fbthrift::TType::Struct, 3),
5051            ::fbthrift::Field::new("space_id", ::fbthrift::TType::I32, 1),
5052        ];
5053        let mut field_space_id = ::std::option::Option::None;
5054        let mut field_edge_name = ::std::option::Option::None;
5055        let mut field_schema = ::std::option::Option::None;
5056        let mut field_if_not_exists = ::std::option::Option::None;
5057        let _ = p.read_struct_begin(|_| ())?;
5058        loop {
5059            let (_, fty, fid) = p.read_field_begin(|_| (), FIELDS)?;
5060            match (fty, fid as ::std::primitive::i32) {
5061                (::fbthrift::TType::Stop, _) => break,
5062                (::fbthrift::TType::I32, 1) => field_space_id = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
5063                (::fbthrift::TType::String, 2) => field_edge_name = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
5064                (::fbthrift::TType::Struct, 3) => field_schema = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
5065                (::fbthrift::TType::Bool, 4) => field_if_not_exists = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
5066                (fty, _) => p.skip(fty)?,
5067            }
5068            p.read_field_end()?;
5069        }
5070        p.read_struct_end()?;
5071        ::std::result::Result::Ok(Self {
5072            space_id: field_space_id.unwrap_or_default(),
5073            edge_name: field_edge_name.unwrap_or_default(),
5074            schema: field_schema.unwrap_or_default(),
5075            if_not_exists: field_if_not_exists.unwrap_or_default(),
5076            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
5077        })
5078    }
5079}
5080
5081
5082#[allow(clippy::derivable_impls)]
5083impl ::std::default::Default for self::AlterEdgeReq {
5084    fn default() -> Self {
5085        Self {
5086            space_id: ::std::default::Default::default(),
5087            edge_name: ::std::default::Default::default(),
5088            edge_items: ::std::default::Default::default(),
5089            schema_prop: ::std::default::Default::default(),
5090            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
5091        }
5092    }
5093}
5094
5095impl ::std::fmt::Debug for self::AlterEdgeReq {
5096    fn fmt(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
5097        formatter
5098            .debug_struct("AlterEdgeReq")
5099            .field("space_id", &self.space_id)
5100            .field("edge_name", &self.edge_name)
5101            .field("edge_items", &self.edge_items)
5102            .field("schema_prop", &self.schema_prop)
5103            .finish()
5104    }
5105}
5106
5107unsafe impl ::std::marker::Send for self::AlterEdgeReq {}
5108unsafe impl ::std::marker::Sync for self::AlterEdgeReq {}
5109
5110impl ::fbthrift::GetTType for self::AlterEdgeReq {
5111    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::Struct;
5112}
5113
5114impl<P> ::fbthrift::Serialize<P> for self::AlterEdgeReq
5115where
5116    P: ::fbthrift::ProtocolWriter,
5117{
5118    fn write(&self, p: &mut P) {
5119        p.write_struct_begin("AlterEdgeReq");
5120        p.write_field_begin("space_id", ::fbthrift::TType::I32, 1);
5121        ::fbthrift::Serialize::write(&self.space_id, p);
5122        p.write_field_end();
5123        p.write_field_begin("edge_name", ::fbthrift::TType::String, 2);
5124        ::fbthrift::Serialize::write(&self.edge_name, p);
5125        p.write_field_end();
5126        p.write_field_begin("edge_items", ::fbthrift::TType::List, 3);
5127        ::fbthrift::Serialize::write(&self.edge_items, p);
5128        p.write_field_end();
5129        p.write_field_begin("schema_prop", ::fbthrift::TType::Struct, 4);
5130        ::fbthrift::Serialize::write(&self.schema_prop, p);
5131        p.write_field_end();
5132        p.write_field_stop();
5133        p.write_struct_end();
5134    }
5135}
5136
5137impl<P> ::fbthrift::Deserialize<P> for self::AlterEdgeReq
5138where
5139    P: ::fbthrift::ProtocolReader,
5140{
5141    fn read(p: &mut P) -> ::anyhow::Result<Self> {
5142        static FIELDS: &[::fbthrift::Field] = &[
5143            ::fbthrift::Field::new("edge_items", ::fbthrift::TType::List, 3),
5144            ::fbthrift::Field::new("edge_name", ::fbthrift::TType::String, 2),
5145            ::fbthrift::Field::new("schema_prop", ::fbthrift::TType::Struct, 4),
5146            ::fbthrift::Field::new("space_id", ::fbthrift::TType::I32, 1),
5147        ];
5148        let mut field_space_id = ::std::option::Option::None;
5149        let mut field_edge_name = ::std::option::Option::None;
5150        let mut field_edge_items = ::std::option::Option::None;
5151        let mut field_schema_prop = ::std::option::Option::None;
5152        let _ = p.read_struct_begin(|_| ())?;
5153        loop {
5154            let (_, fty, fid) = p.read_field_begin(|_| (), FIELDS)?;
5155            match (fty, fid as ::std::primitive::i32) {
5156                (::fbthrift::TType::Stop, _) => break,
5157                (::fbthrift::TType::I32, 1) => field_space_id = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
5158                (::fbthrift::TType::String, 2) => field_edge_name = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
5159                (::fbthrift::TType::List, 3) => field_edge_items = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
5160                (::fbthrift::TType::Struct, 4) => field_schema_prop = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
5161                (fty, _) => p.skip(fty)?,
5162            }
5163            p.read_field_end()?;
5164        }
5165        p.read_struct_end()?;
5166        ::std::result::Result::Ok(Self {
5167            space_id: field_space_id.unwrap_or_default(),
5168            edge_name: field_edge_name.unwrap_or_default(),
5169            edge_items: field_edge_items.unwrap_or_default(),
5170            schema_prop: field_schema_prop.unwrap_or_default(),
5171            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
5172        })
5173    }
5174}
5175
5176
5177#[allow(clippy::derivable_impls)]
5178impl ::std::default::Default for self::GetEdgeReq {
5179    fn default() -> Self {
5180        Self {
5181            space_id: ::std::default::Default::default(),
5182            edge_name: ::std::default::Default::default(),
5183            version: ::std::default::Default::default(),
5184            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
5185        }
5186    }
5187}
5188
5189impl ::std::fmt::Debug for self::GetEdgeReq {
5190    fn fmt(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
5191        formatter
5192            .debug_struct("GetEdgeReq")
5193            .field("space_id", &self.space_id)
5194            .field("edge_name", &self.edge_name)
5195            .field("version", &self.version)
5196            .finish()
5197    }
5198}
5199
5200unsafe impl ::std::marker::Send for self::GetEdgeReq {}
5201unsafe impl ::std::marker::Sync for self::GetEdgeReq {}
5202
5203impl ::fbthrift::GetTType for self::GetEdgeReq {
5204    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::Struct;
5205}
5206
5207impl<P> ::fbthrift::Serialize<P> for self::GetEdgeReq
5208where
5209    P: ::fbthrift::ProtocolWriter,
5210{
5211    fn write(&self, p: &mut P) {
5212        p.write_struct_begin("GetEdgeReq");
5213        p.write_field_begin("space_id", ::fbthrift::TType::I32, 1);
5214        ::fbthrift::Serialize::write(&self.space_id, p);
5215        p.write_field_end();
5216        p.write_field_begin("edge_name", ::fbthrift::TType::String, 2);
5217        ::fbthrift::Serialize::write(&self.edge_name, p);
5218        p.write_field_end();
5219        p.write_field_begin("version", ::fbthrift::TType::I64, 3);
5220        ::fbthrift::Serialize::write(&self.version, p);
5221        p.write_field_end();
5222        p.write_field_stop();
5223        p.write_struct_end();
5224    }
5225}
5226
5227impl<P> ::fbthrift::Deserialize<P> for self::GetEdgeReq
5228where
5229    P: ::fbthrift::ProtocolReader,
5230{
5231    fn read(p: &mut P) -> ::anyhow::Result<Self> {
5232        static FIELDS: &[::fbthrift::Field] = &[
5233            ::fbthrift::Field::new("edge_name", ::fbthrift::TType::String, 2),
5234            ::fbthrift::Field::new("space_id", ::fbthrift::TType::I32, 1),
5235            ::fbthrift::Field::new("version", ::fbthrift::TType::I64, 3),
5236        ];
5237        let mut field_space_id = ::std::option::Option::None;
5238        let mut field_edge_name = ::std::option::Option::None;
5239        let mut field_version = ::std::option::Option::None;
5240        let _ = p.read_struct_begin(|_| ())?;
5241        loop {
5242            let (_, fty, fid) = p.read_field_begin(|_| (), FIELDS)?;
5243            match (fty, fid as ::std::primitive::i32) {
5244                (::fbthrift::TType::Stop, _) => break,
5245                (::fbthrift::TType::I32, 1) => field_space_id = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
5246                (::fbthrift::TType::String, 2) => field_edge_name = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
5247                (::fbthrift::TType::I64, 3) => field_version = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
5248                (fty, _) => p.skip(fty)?,
5249            }
5250            p.read_field_end()?;
5251        }
5252        p.read_struct_end()?;
5253        ::std::result::Result::Ok(Self {
5254            space_id: field_space_id.unwrap_or_default(),
5255            edge_name: field_edge_name.unwrap_or_default(),
5256            version: field_version.unwrap_or_default(),
5257            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
5258        })
5259    }
5260}
5261
5262
5263#[allow(clippy::derivable_impls)]
5264impl ::std::default::Default for self::GetEdgeResp {
5265    fn default() -> Self {
5266        Self {
5267            code: ::std::default::Default::default(),
5268            leader: ::std::default::Default::default(),
5269            schema: ::std::default::Default::default(),
5270            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
5271        }
5272    }
5273}
5274
5275impl ::std::fmt::Debug for self::GetEdgeResp {
5276    fn fmt(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
5277        formatter
5278            .debug_struct("GetEdgeResp")
5279            .field("code", &self.code)
5280            .field("leader", &self.leader)
5281            .field("schema", &self.schema)
5282            .finish()
5283    }
5284}
5285
5286unsafe impl ::std::marker::Send for self::GetEdgeResp {}
5287unsafe impl ::std::marker::Sync for self::GetEdgeResp {}
5288
5289impl ::fbthrift::GetTType for self::GetEdgeResp {
5290    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::Struct;
5291}
5292
5293impl<P> ::fbthrift::Serialize<P> for self::GetEdgeResp
5294where
5295    P: ::fbthrift::ProtocolWriter,
5296{
5297    fn write(&self, p: &mut P) {
5298        p.write_struct_begin("GetEdgeResp");
5299        p.write_field_begin("code", ::fbthrift::TType::I32, 1);
5300        ::fbthrift::Serialize::write(&self.code, p);
5301        p.write_field_end();
5302        p.write_field_begin("leader", ::fbthrift::TType::Struct, 2);
5303        ::fbthrift::Serialize::write(&self.leader, p);
5304        p.write_field_end();
5305        p.write_field_begin("schema", ::fbthrift::TType::Struct, 3);
5306        ::fbthrift::Serialize::write(&self.schema, p);
5307        p.write_field_end();
5308        p.write_field_stop();
5309        p.write_struct_end();
5310    }
5311}
5312
5313impl<P> ::fbthrift::Deserialize<P> for self::GetEdgeResp
5314where
5315    P: ::fbthrift::ProtocolReader,
5316{
5317    fn read(p: &mut P) -> ::anyhow::Result<Self> {
5318        static FIELDS: &[::fbthrift::Field] = &[
5319            ::fbthrift::Field::new("code", ::fbthrift::TType::I32, 1),
5320            ::fbthrift::Field::new("leader", ::fbthrift::TType::Struct, 2),
5321            ::fbthrift::Field::new("schema", ::fbthrift::TType::Struct, 3),
5322        ];
5323        let mut field_code = ::std::option::Option::None;
5324        let mut field_leader = ::std::option::Option::None;
5325        let mut field_schema = ::std::option::Option::None;
5326        let _ = p.read_struct_begin(|_| ())?;
5327        loop {
5328            let (_, fty, fid) = p.read_field_begin(|_| (), FIELDS)?;
5329            match (fty, fid as ::std::primitive::i32) {
5330                (::fbthrift::TType::Stop, _) => break,
5331                (::fbthrift::TType::I32, 1) => field_code = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
5332                (::fbthrift::TType::Struct, 2) => field_leader = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
5333                (::fbthrift::TType::Struct, 3) => field_schema = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
5334                (fty, _) => p.skip(fty)?,
5335            }
5336            p.read_field_end()?;
5337        }
5338        p.read_struct_end()?;
5339        ::std::result::Result::Ok(Self {
5340            code: field_code.unwrap_or_default(),
5341            leader: field_leader.unwrap_or_default(),
5342            schema: field_schema.unwrap_or_default(),
5343            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
5344        })
5345    }
5346}
5347
5348
5349#[allow(clippy::derivable_impls)]
5350impl ::std::default::Default for self::DropEdgeReq {
5351    fn default() -> Self {
5352        Self {
5353            space_id: ::std::default::Default::default(),
5354            edge_name: ::std::default::Default::default(),
5355            if_exists: ::std::default::Default::default(),
5356            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
5357        }
5358    }
5359}
5360
5361impl ::std::fmt::Debug for self::DropEdgeReq {
5362    fn fmt(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
5363        formatter
5364            .debug_struct("DropEdgeReq")
5365            .field("space_id", &self.space_id)
5366            .field("edge_name", &self.edge_name)
5367            .field("if_exists", &self.if_exists)
5368            .finish()
5369    }
5370}
5371
5372unsafe impl ::std::marker::Send for self::DropEdgeReq {}
5373unsafe impl ::std::marker::Sync for self::DropEdgeReq {}
5374
5375impl ::fbthrift::GetTType for self::DropEdgeReq {
5376    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::Struct;
5377}
5378
5379impl<P> ::fbthrift::Serialize<P> for self::DropEdgeReq
5380where
5381    P: ::fbthrift::ProtocolWriter,
5382{
5383    fn write(&self, p: &mut P) {
5384        p.write_struct_begin("DropEdgeReq");
5385        p.write_field_begin("space_id", ::fbthrift::TType::I32, 1);
5386        ::fbthrift::Serialize::write(&self.space_id, p);
5387        p.write_field_end();
5388        p.write_field_begin("edge_name", ::fbthrift::TType::String, 2);
5389        ::fbthrift::Serialize::write(&self.edge_name, p);
5390        p.write_field_end();
5391        p.write_field_begin("if_exists", ::fbthrift::TType::Bool, 3);
5392        ::fbthrift::Serialize::write(&self.if_exists, p);
5393        p.write_field_end();
5394        p.write_field_stop();
5395        p.write_struct_end();
5396    }
5397}
5398
5399impl<P> ::fbthrift::Deserialize<P> for self::DropEdgeReq
5400where
5401    P: ::fbthrift::ProtocolReader,
5402{
5403    fn read(p: &mut P) -> ::anyhow::Result<Self> {
5404        static FIELDS: &[::fbthrift::Field] = &[
5405            ::fbthrift::Field::new("edge_name", ::fbthrift::TType::String, 2),
5406            ::fbthrift::Field::new("if_exists", ::fbthrift::TType::Bool, 3),
5407            ::fbthrift::Field::new("space_id", ::fbthrift::TType::I32, 1),
5408        ];
5409        let mut field_space_id = ::std::option::Option::None;
5410        let mut field_edge_name = ::std::option::Option::None;
5411        let mut field_if_exists = ::std::option::Option::None;
5412        let _ = p.read_struct_begin(|_| ())?;
5413        loop {
5414            let (_, fty, fid) = p.read_field_begin(|_| (), FIELDS)?;
5415            match (fty, fid as ::std::primitive::i32) {
5416                (::fbthrift::TType::Stop, _) => break,
5417                (::fbthrift::TType::I32, 1) => field_space_id = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
5418                (::fbthrift::TType::String, 2) => field_edge_name = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
5419                (::fbthrift::TType::Bool, 3) => field_if_exists = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
5420                (fty, _) => p.skip(fty)?,
5421            }
5422            p.read_field_end()?;
5423        }
5424        p.read_struct_end()?;
5425        ::std::result::Result::Ok(Self {
5426            space_id: field_space_id.unwrap_or_default(),
5427            edge_name: field_edge_name.unwrap_or_default(),
5428            if_exists: field_if_exists.unwrap_or_default(),
5429            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
5430        })
5431    }
5432}
5433
5434
5435#[allow(clippy::derivable_impls)]
5436impl ::std::default::Default for self::ListEdgesReq {
5437    fn default() -> Self {
5438        Self {
5439            space_id: ::std::default::Default::default(),
5440            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
5441        }
5442    }
5443}
5444
5445impl ::std::fmt::Debug for self::ListEdgesReq {
5446    fn fmt(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
5447        formatter
5448            .debug_struct("ListEdgesReq")
5449            .field("space_id", &self.space_id)
5450            .finish()
5451    }
5452}
5453
5454unsafe impl ::std::marker::Send for self::ListEdgesReq {}
5455unsafe impl ::std::marker::Sync for self::ListEdgesReq {}
5456
5457impl ::fbthrift::GetTType for self::ListEdgesReq {
5458    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::Struct;
5459}
5460
5461impl<P> ::fbthrift::Serialize<P> for self::ListEdgesReq
5462where
5463    P: ::fbthrift::ProtocolWriter,
5464{
5465    fn write(&self, p: &mut P) {
5466        p.write_struct_begin("ListEdgesReq");
5467        p.write_field_begin("space_id", ::fbthrift::TType::I32, 1);
5468        ::fbthrift::Serialize::write(&self.space_id, p);
5469        p.write_field_end();
5470        p.write_field_stop();
5471        p.write_struct_end();
5472    }
5473}
5474
5475impl<P> ::fbthrift::Deserialize<P> for self::ListEdgesReq
5476where
5477    P: ::fbthrift::ProtocolReader,
5478{
5479    fn read(p: &mut P) -> ::anyhow::Result<Self> {
5480        static FIELDS: &[::fbthrift::Field] = &[
5481            ::fbthrift::Field::new("space_id", ::fbthrift::TType::I32, 1),
5482        ];
5483        let mut field_space_id = ::std::option::Option::None;
5484        let _ = p.read_struct_begin(|_| ())?;
5485        loop {
5486            let (_, fty, fid) = p.read_field_begin(|_| (), FIELDS)?;
5487            match (fty, fid as ::std::primitive::i32) {
5488                (::fbthrift::TType::Stop, _) => break,
5489                (::fbthrift::TType::I32, 1) => field_space_id = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
5490                (fty, _) => p.skip(fty)?,
5491            }
5492            p.read_field_end()?;
5493        }
5494        p.read_struct_end()?;
5495        ::std::result::Result::Ok(Self {
5496            space_id: field_space_id.unwrap_or_default(),
5497            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
5498        })
5499    }
5500}
5501
5502
5503#[allow(clippy::derivable_impls)]
5504impl ::std::default::Default for self::ListEdgesResp {
5505    fn default() -> Self {
5506        Self {
5507            code: ::std::default::Default::default(),
5508            leader: ::std::default::Default::default(),
5509            edges: ::std::default::Default::default(),
5510            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
5511        }
5512    }
5513}
5514
5515impl ::std::fmt::Debug for self::ListEdgesResp {
5516    fn fmt(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
5517        formatter
5518            .debug_struct("ListEdgesResp")
5519            .field("code", &self.code)
5520            .field("leader", &self.leader)
5521            .field("edges", &self.edges)
5522            .finish()
5523    }
5524}
5525
5526unsafe impl ::std::marker::Send for self::ListEdgesResp {}
5527unsafe impl ::std::marker::Sync for self::ListEdgesResp {}
5528
5529impl ::fbthrift::GetTType for self::ListEdgesResp {
5530    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::Struct;
5531}
5532
5533impl<P> ::fbthrift::Serialize<P> for self::ListEdgesResp
5534where
5535    P: ::fbthrift::ProtocolWriter,
5536{
5537    fn write(&self, p: &mut P) {
5538        p.write_struct_begin("ListEdgesResp");
5539        p.write_field_begin("code", ::fbthrift::TType::I32, 1);
5540        ::fbthrift::Serialize::write(&self.code, p);
5541        p.write_field_end();
5542        p.write_field_begin("leader", ::fbthrift::TType::Struct, 2);
5543        ::fbthrift::Serialize::write(&self.leader, p);
5544        p.write_field_end();
5545        p.write_field_begin("edges", ::fbthrift::TType::List, 3);
5546        ::fbthrift::Serialize::write(&self.edges, p);
5547        p.write_field_end();
5548        p.write_field_stop();
5549        p.write_struct_end();
5550    }
5551}
5552
5553impl<P> ::fbthrift::Deserialize<P> for self::ListEdgesResp
5554where
5555    P: ::fbthrift::ProtocolReader,
5556{
5557    fn read(p: &mut P) -> ::anyhow::Result<Self> {
5558        static FIELDS: &[::fbthrift::Field] = &[
5559            ::fbthrift::Field::new("code", ::fbthrift::TType::I32, 1),
5560            ::fbthrift::Field::new("edges", ::fbthrift::TType::List, 3),
5561            ::fbthrift::Field::new("leader", ::fbthrift::TType::Struct, 2),
5562        ];
5563        let mut field_code = ::std::option::Option::None;
5564        let mut field_leader = ::std::option::Option::None;
5565        let mut field_edges = ::std::option::Option::None;
5566        let _ = p.read_struct_begin(|_| ())?;
5567        loop {
5568            let (_, fty, fid) = p.read_field_begin(|_| (), FIELDS)?;
5569            match (fty, fid as ::std::primitive::i32) {
5570                (::fbthrift::TType::Stop, _) => break,
5571                (::fbthrift::TType::I32, 1) => field_code = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
5572                (::fbthrift::TType::Struct, 2) => field_leader = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
5573                (::fbthrift::TType::List, 3) => field_edges = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
5574                (fty, _) => p.skip(fty)?,
5575            }
5576            p.read_field_end()?;
5577        }
5578        p.read_struct_end()?;
5579        ::std::result::Result::Ok(Self {
5580            code: field_code.unwrap_or_default(),
5581            leader: field_leader.unwrap_or_default(),
5582            edges: field_edges.unwrap_or_default(),
5583            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
5584        })
5585    }
5586}
5587
5588
5589#[allow(clippy::derivable_impls)]
5590impl ::std::default::Default for self::ListHostsReq {
5591    fn default() -> Self {
5592        Self {
5593            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
5594        }
5595    }
5596}
5597
5598impl ::std::fmt::Debug for self::ListHostsReq {
5599    fn fmt(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
5600        formatter
5601            .debug_struct("ListHostsReq")
5602            .finish()
5603    }
5604}
5605
5606unsafe impl ::std::marker::Send for self::ListHostsReq {}
5607unsafe impl ::std::marker::Sync for self::ListHostsReq {}
5608
5609impl ::fbthrift::GetTType for self::ListHostsReq {
5610    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::Struct;
5611}
5612
5613impl<P> ::fbthrift::Serialize<P> for self::ListHostsReq
5614where
5615    P: ::fbthrift::ProtocolWriter,
5616{
5617    fn write(&self, p: &mut P) {
5618        p.write_struct_begin("ListHostsReq");
5619        p.write_field_stop();
5620        p.write_struct_end();
5621    }
5622}
5623
5624impl<P> ::fbthrift::Deserialize<P> for self::ListHostsReq
5625where
5626    P: ::fbthrift::ProtocolReader,
5627{
5628    fn read(p: &mut P) -> ::anyhow::Result<Self> {
5629        static FIELDS: &[::fbthrift::Field] = &[
5630        ];
5631        let _ = p.read_struct_begin(|_| ())?;
5632        loop {
5633            let (_, fty, fid) = p.read_field_begin(|_| (), FIELDS)?;
5634            match (fty, fid as ::std::primitive::i32) {
5635                (::fbthrift::TType::Stop, _) => break,
5636                (fty, _) => p.skip(fty)?,
5637            }
5638            p.read_field_end()?;
5639        }
5640        p.read_struct_end()?;
5641        ::std::result::Result::Ok(Self {
5642            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
5643        })
5644    }
5645}
5646
5647
5648#[allow(clippy::derivable_impls)]
5649impl ::std::default::Default for self::ListHostsResp {
5650    fn default() -> Self {
5651        Self {
5652            code: ::std::default::Default::default(),
5653            leader: ::std::default::Default::default(),
5654            hosts: ::std::default::Default::default(),
5655            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
5656        }
5657    }
5658}
5659
5660impl ::std::fmt::Debug for self::ListHostsResp {
5661    fn fmt(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
5662        formatter
5663            .debug_struct("ListHostsResp")
5664            .field("code", &self.code)
5665            .field("leader", &self.leader)
5666            .field("hosts", &self.hosts)
5667            .finish()
5668    }
5669}
5670
5671unsafe impl ::std::marker::Send for self::ListHostsResp {}
5672unsafe impl ::std::marker::Sync for self::ListHostsResp {}
5673
5674impl ::fbthrift::GetTType for self::ListHostsResp {
5675    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::Struct;
5676}
5677
5678impl<P> ::fbthrift::Serialize<P> for self::ListHostsResp
5679where
5680    P: ::fbthrift::ProtocolWriter,
5681{
5682    fn write(&self, p: &mut P) {
5683        p.write_struct_begin("ListHostsResp");
5684        p.write_field_begin("code", ::fbthrift::TType::I32, 1);
5685        ::fbthrift::Serialize::write(&self.code, p);
5686        p.write_field_end();
5687        p.write_field_begin("leader", ::fbthrift::TType::Struct, 2);
5688        ::fbthrift::Serialize::write(&self.leader, p);
5689        p.write_field_end();
5690        p.write_field_begin("hosts", ::fbthrift::TType::List, 3);
5691        ::fbthrift::Serialize::write(&self.hosts, p);
5692        p.write_field_end();
5693        p.write_field_stop();
5694        p.write_struct_end();
5695    }
5696}
5697
5698impl<P> ::fbthrift::Deserialize<P> for self::ListHostsResp
5699where
5700    P: ::fbthrift::ProtocolReader,
5701{
5702    fn read(p: &mut P) -> ::anyhow::Result<Self> {
5703        static FIELDS: &[::fbthrift::Field] = &[
5704            ::fbthrift::Field::new("code", ::fbthrift::TType::I32, 1),
5705            ::fbthrift::Field::new("hosts", ::fbthrift::TType::List, 3),
5706            ::fbthrift::Field::new("leader", ::fbthrift::TType::Struct, 2),
5707        ];
5708        let mut field_code = ::std::option::Option::None;
5709        let mut field_leader = ::std::option::Option::None;
5710        let mut field_hosts = ::std::option::Option::None;
5711        let _ = p.read_struct_begin(|_| ())?;
5712        loop {
5713            let (_, fty, fid) = p.read_field_begin(|_| (), FIELDS)?;
5714            match (fty, fid as ::std::primitive::i32) {
5715                (::fbthrift::TType::Stop, _) => break,
5716                (::fbthrift::TType::I32, 1) => field_code = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
5717                (::fbthrift::TType::Struct, 2) => field_leader = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
5718                (::fbthrift::TType::List, 3) => field_hosts = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
5719                (fty, _) => p.skip(fty)?,
5720            }
5721            p.read_field_end()?;
5722        }
5723        p.read_struct_end()?;
5724        ::std::result::Result::Ok(Self {
5725            code: field_code.unwrap_or_default(),
5726            leader: field_leader.unwrap_or_default(),
5727            hosts: field_hosts.unwrap_or_default(),
5728            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
5729        })
5730    }
5731}
5732
5733
5734#[allow(clippy::derivable_impls)]
5735impl ::std::default::Default for self::PartItem {
5736    fn default() -> Self {
5737        Self {
5738            part_id: ::std::default::Default::default(),
5739            leader: ::std::option::Option::None,
5740            peers: ::std::default::Default::default(),
5741            losts: ::std::default::Default::default(),
5742            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
5743        }
5744    }
5745}
5746
5747impl ::std::fmt::Debug for self::PartItem {
5748    fn fmt(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
5749        formatter
5750            .debug_struct("PartItem")
5751            .field("part_id", &self.part_id)
5752            .field("leader", &self.leader)
5753            .field("peers", &self.peers)
5754            .field("losts", &self.losts)
5755            .finish()
5756    }
5757}
5758
5759unsafe impl ::std::marker::Send for self::PartItem {}
5760unsafe impl ::std::marker::Sync for self::PartItem {}
5761
5762impl ::fbthrift::GetTType for self::PartItem {
5763    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::Struct;
5764}
5765
5766impl<P> ::fbthrift::Serialize<P> for self::PartItem
5767where
5768    P: ::fbthrift::ProtocolWriter,
5769{
5770    fn write(&self, p: &mut P) {
5771        p.write_struct_begin("PartItem");
5772        p.write_field_begin("part_id", ::fbthrift::TType::I32, 1);
5773        ::fbthrift::Serialize::write(&self.part_id, p);
5774        p.write_field_end();
5775        if let ::std::option::Option::Some(some) = &self.leader {
5776            p.write_field_begin("leader", ::fbthrift::TType::Struct, 2);
5777            ::fbthrift::Serialize::write(some, p);
5778            p.write_field_end();
5779        }
5780        p.write_field_begin("peers", ::fbthrift::TType::List, 3);
5781        ::fbthrift::Serialize::write(&self.peers, p);
5782        p.write_field_end();
5783        p.write_field_begin("losts", ::fbthrift::TType::List, 4);
5784        ::fbthrift::Serialize::write(&self.losts, p);
5785        p.write_field_end();
5786        p.write_field_stop();
5787        p.write_struct_end();
5788    }
5789}
5790
5791impl<P> ::fbthrift::Deserialize<P> for self::PartItem
5792where
5793    P: ::fbthrift::ProtocolReader,
5794{
5795    fn read(p: &mut P) -> ::anyhow::Result<Self> {
5796        static FIELDS: &[::fbthrift::Field] = &[
5797            ::fbthrift::Field::new("leader", ::fbthrift::TType::Struct, 2),
5798            ::fbthrift::Field::new("losts", ::fbthrift::TType::List, 4),
5799            ::fbthrift::Field::new("part_id", ::fbthrift::TType::I32, 1),
5800            ::fbthrift::Field::new("peers", ::fbthrift::TType::List, 3),
5801        ];
5802        let mut field_part_id = ::std::option::Option::None;
5803        let mut field_leader = ::std::option::Option::None;
5804        let mut field_peers = ::std::option::Option::None;
5805        let mut field_losts = ::std::option::Option::None;
5806        let _ = p.read_struct_begin(|_| ())?;
5807        loop {
5808            let (_, fty, fid) = p.read_field_begin(|_| (), FIELDS)?;
5809            match (fty, fid as ::std::primitive::i32) {
5810                (::fbthrift::TType::Stop, _) => break,
5811                (::fbthrift::TType::I32, 1) => field_part_id = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
5812                (::fbthrift::TType::Struct, 2) => field_leader = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
5813                (::fbthrift::TType::List, 3) => field_peers = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
5814                (::fbthrift::TType::List, 4) => field_losts = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
5815                (fty, _) => p.skip(fty)?,
5816            }
5817            p.read_field_end()?;
5818        }
5819        p.read_struct_end()?;
5820        ::std::result::Result::Ok(Self {
5821            part_id: field_part_id.unwrap_or_default(),
5822            leader: field_leader,
5823            peers: field_peers.unwrap_or_default(),
5824            losts: field_losts.unwrap_or_default(),
5825            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
5826        })
5827    }
5828}
5829
5830
5831#[allow(clippy::derivable_impls)]
5832impl ::std::default::Default for self::ListPartsReq {
5833    fn default() -> Self {
5834        Self {
5835            space_id: ::std::default::Default::default(),
5836            part_ids: ::std::default::Default::default(),
5837            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
5838        }
5839    }
5840}
5841
5842impl ::std::fmt::Debug for self::ListPartsReq {
5843    fn fmt(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
5844        formatter
5845            .debug_struct("ListPartsReq")
5846            .field("space_id", &self.space_id)
5847            .field("part_ids", &self.part_ids)
5848            .finish()
5849    }
5850}
5851
5852unsafe impl ::std::marker::Send for self::ListPartsReq {}
5853unsafe impl ::std::marker::Sync for self::ListPartsReq {}
5854
5855impl ::fbthrift::GetTType for self::ListPartsReq {
5856    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::Struct;
5857}
5858
5859impl<P> ::fbthrift::Serialize<P> for self::ListPartsReq
5860where
5861    P: ::fbthrift::ProtocolWriter,
5862{
5863    fn write(&self, p: &mut P) {
5864        p.write_struct_begin("ListPartsReq");
5865        p.write_field_begin("space_id", ::fbthrift::TType::I32, 1);
5866        ::fbthrift::Serialize::write(&self.space_id, p);
5867        p.write_field_end();
5868        p.write_field_begin("part_ids", ::fbthrift::TType::List, 2);
5869        ::fbthrift::Serialize::write(&self.part_ids, p);
5870        p.write_field_end();
5871        p.write_field_stop();
5872        p.write_struct_end();
5873    }
5874}
5875
5876impl<P> ::fbthrift::Deserialize<P> for self::ListPartsReq
5877where
5878    P: ::fbthrift::ProtocolReader,
5879{
5880    fn read(p: &mut P) -> ::anyhow::Result<Self> {
5881        static FIELDS: &[::fbthrift::Field] = &[
5882            ::fbthrift::Field::new("part_ids", ::fbthrift::TType::List, 2),
5883            ::fbthrift::Field::new("space_id", ::fbthrift::TType::I32, 1),
5884        ];
5885        let mut field_space_id = ::std::option::Option::None;
5886        let mut field_part_ids = ::std::option::Option::None;
5887        let _ = p.read_struct_begin(|_| ())?;
5888        loop {
5889            let (_, fty, fid) = p.read_field_begin(|_| (), FIELDS)?;
5890            match (fty, fid as ::std::primitive::i32) {
5891                (::fbthrift::TType::Stop, _) => break,
5892                (::fbthrift::TType::I32, 1) => field_space_id = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
5893                (::fbthrift::TType::List, 2) => field_part_ids = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
5894                (fty, _) => p.skip(fty)?,
5895            }
5896            p.read_field_end()?;
5897        }
5898        p.read_struct_end()?;
5899        ::std::result::Result::Ok(Self {
5900            space_id: field_space_id.unwrap_or_default(),
5901            part_ids: field_part_ids.unwrap_or_default(),
5902            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
5903        })
5904    }
5905}
5906
5907
5908#[allow(clippy::derivable_impls)]
5909impl ::std::default::Default for self::ListPartsResp {
5910    fn default() -> Self {
5911        Self {
5912            code: ::std::default::Default::default(),
5913            leader: ::std::default::Default::default(),
5914            parts: ::std::default::Default::default(),
5915            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
5916        }
5917    }
5918}
5919
5920impl ::std::fmt::Debug for self::ListPartsResp {
5921    fn fmt(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
5922        formatter
5923            .debug_struct("ListPartsResp")
5924            .field("code", &self.code)
5925            .field("leader", &self.leader)
5926            .field("parts", &self.parts)
5927            .finish()
5928    }
5929}
5930
5931unsafe impl ::std::marker::Send for self::ListPartsResp {}
5932unsafe impl ::std::marker::Sync for self::ListPartsResp {}
5933
5934impl ::fbthrift::GetTType for self::ListPartsResp {
5935    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::Struct;
5936}
5937
5938impl<P> ::fbthrift::Serialize<P> for self::ListPartsResp
5939where
5940    P: ::fbthrift::ProtocolWriter,
5941{
5942    fn write(&self, p: &mut P) {
5943        p.write_struct_begin("ListPartsResp");
5944        p.write_field_begin("code", ::fbthrift::TType::I32, 1);
5945        ::fbthrift::Serialize::write(&self.code, p);
5946        p.write_field_end();
5947        p.write_field_begin("leader", ::fbthrift::TType::Struct, 2);
5948        ::fbthrift::Serialize::write(&self.leader, p);
5949        p.write_field_end();
5950        p.write_field_begin("parts", ::fbthrift::TType::List, 3);
5951        ::fbthrift::Serialize::write(&self.parts, p);
5952        p.write_field_end();
5953        p.write_field_stop();
5954        p.write_struct_end();
5955    }
5956}
5957
5958impl<P> ::fbthrift::Deserialize<P> for self::ListPartsResp
5959where
5960    P: ::fbthrift::ProtocolReader,
5961{
5962    fn read(p: &mut P) -> ::anyhow::Result<Self> {
5963        static FIELDS: &[::fbthrift::Field] = &[
5964            ::fbthrift::Field::new("code", ::fbthrift::TType::I32, 1),
5965            ::fbthrift::Field::new("leader", ::fbthrift::TType::Struct, 2),
5966            ::fbthrift::Field::new("parts", ::fbthrift::TType::List, 3),
5967        ];
5968        let mut field_code = ::std::option::Option::None;
5969        let mut field_leader = ::std::option::Option::None;
5970        let mut field_parts = ::std::option::Option::None;
5971        let _ = p.read_struct_begin(|_| ())?;
5972        loop {
5973            let (_, fty, fid) = p.read_field_begin(|_| (), FIELDS)?;
5974            match (fty, fid as ::std::primitive::i32) {
5975                (::fbthrift::TType::Stop, _) => break,
5976                (::fbthrift::TType::I32, 1) => field_code = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
5977                (::fbthrift::TType::Struct, 2) => field_leader = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
5978                (::fbthrift::TType::List, 3) => field_parts = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
5979                (fty, _) => p.skip(fty)?,
5980            }
5981            p.read_field_end()?;
5982        }
5983        p.read_struct_end()?;
5984        ::std::result::Result::Ok(Self {
5985            code: field_code.unwrap_or_default(),
5986            leader: field_leader.unwrap_or_default(),
5987            parts: field_parts.unwrap_or_default(),
5988            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
5989        })
5990    }
5991}
5992
5993
5994#[allow(clippy::derivable_impls)]
5995impl ::std::default::Default for self::GetPartsAllocReq {
5996    fn default() -> Self {
5997        Self {
5998            space_id: ::std::default::Default::default(),
5999            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
6000        }
6001    }
6002}
6003
6004impl ::std::fmt::Debug for self::GetPartsAllocReq {
6005    fn fmt(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6006        formatter
6007            .debug_struct("GetPartsAllocReq")
6008            .field("space_id", &self.space_id)
6009            .finish()
6010    }
6011}
6012
6013unsafe impl ::std::marker::Send for self::GetPartsAllocReq {}
6014unsafe impl ::std::marker::Sync for self::GetPartsAllocReq {}
6015
6016impl ::fbthrift::GetTType for self::GetPartsAllocReq {
6017    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::Struct;
6018}
6019
6020impl<P> ::fbthrift::Serialize<P> for self::GetPartsAllocReq
6021where
6022    P: ::fbthrift::ProtocolWriter,
6023{
6024    fn write(&self, p: &mut P) {
6025        p.write_struct_begin("GetPartsAllocReq");
6026        p.write_field_begin("space_id", ::fbthrift::TType::I32, 1);
6027        ::fbthrift::Serialize::write(&self.space_id, p);
6028        p.write_field_end();
6029        p.write_field_stop();
6030        p.write_struct_end();
6031    }
6032}
6033
6034impl<P> ::fbthrift::Deserialize<P> for self::GetPartsAllocReq
6035where
6036    P: ::fbthrift::ProtocolReader,
6037{
6038    fn read(p: &mut P) -> ::anyhow::Result<Self> {
6039        static FIELDS: &[::fbthrift::Field] = &[
6040            ::fbthrift::Field::new("space_id", ::fbthrift::TType::I32, 1),
6041        ];
6042        let mut field_space_id = ::std::option::Option::None;
6043        let _ = p.read_struct_begin(|_| ())?;
6044        loop {
6045            let (_, fty, fid) = p.read_field_begin(|_| (), FIELDS)?;
6046            match (fty, fid as ::std::primitive::i32) {
6047                (::fbthrift::TType::Stop, _) => break,
6048                (::fbthrift::TType::I32, 1) => field_space_id = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
6049                (fty, _) => p.skip(fty)?,
6050            }
6051            p.read_field_end()?;
6052        }
6053        p.read_struct_end()?;
6054        ::std::result::Result::Ok(Self {
6055            space_id: field_space_id.unwrap_or_default(),
6056            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
6057        })
6058    }
6059}
6060
6061
6062#[allow(clippy::derivable_impls)]
6063impl ::std::default::Default for self::GetPartsAllocResp {
6064    fn default() -> Self {
6065        Self {
6066            code: ::std::default::Default::default(),
6067            leader: ::std::default::Default::default(),
6068            parts: ::std::default::Default::default(),
6069            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
6070        }
6071    }
6072}
6073
6074impl ::std::fmt::Debug for self::GetPartsAllocResp {
6075    fn fmt(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6076        formatter
6077            .debug_struct("GetPartsAllocResp")
6078            .field("code", &self.code)
6079            .field("leader", &self.leader)
6080            .field("parts", &self.parts)
6081            .finish()
6082    }
6083}
6084
6085unsafe impl ::std::marker::Send for self::GetPartsAllocResp {}
6086unsafe impl ::std::marker::Sync for self::GetPartsAllocResp {}
6087
6088impl ::fbthrift::GetTType for self::GetPartsAllocResp {
6089    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::Struct;
6090}
6091
6092impl<P> ::fbthrift::Serialize<P> for self::GetPartsAllocResp
6093where
6094    P: ::fbthrift::ProtocolWriter,
6095{
6096    fn write(&self, p: &mut P) {
6097        p.write_struct_begin("GetPartsAllocResp");
6098        p.write_field_begin("code", ::fbthrift::TType::I32, 1);
6099        ::fbthrift::Serialize::write(&self.code, p);
6100        p.write_field_end();
6101        p.write_field_begin("leader", ::fbthrift::TType::Struct, 2);
6102        ::fbthrift::Serialize::write(&self.leader, p);
6103        p.write_field_end();
6104        p.write_field_begin("parts", ::fbthrift::TType::Map, 3);
6105        ::fbthrift::Serialize::write(&self.parts, p);
6106        p.write_field_end();
6107        p.write_field_stop();
6108        p.write_struct_end();
6109    }
6110}
6111
6112impl<P> ::fbthrift::Deserialize<P> for self::GetPartsAllocResp
6113where
6114    P: ::fbthrift::ProtocolReader,
6115{
6116    fn read(p: &mut P) -> ::anyhow::Result<Self> {
6117        static FIELDS: &[::fbthrift::Field] = &[
6118            ::fbthrift::Field::new("code", ::fbthrift::TType::I32, 1),
6119            ::fbthrift::Field::new("leader", ::fbthrift::TType::Struct, 2),
6120            ::fbthrift::Field::new("parts", ::fbthrift::TType::Map, 3),
6121        ];
6122        let mut field_code = ::std::option::Option::None;
6123        let mut field_leader = ::std::option::Option::None;
6124        let mut field_parts = ::std::option::Option::None;
6125        let _ = p.read_struct_begin(|_| ())?;
6126        loop {
6127            let (_, fty, fid) = p.read_field_begin(|_| (), FIELDS)?;
6128            match (fty, fid as ::std::primitive::i32) {
6129                (::fbthrift::TType::Stop, _) => break,
6130                (::fbthrift::TType::I32, 1) => field_code = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
6131                (::fbthrift::TType::Struct, 2) => field_leader = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
6132                (::fbthrift::TType::Map, 3) => field_parts = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
6133                (fty, _) => p.skip(fty)?,
6134            }
6135            p.read_field_end()?;
6136        }
6137        p.read_struct_end()?;
6138        ::std::result::Result::Ok(Self {
6139            code: field_code.unwrap_or_default(),
6140            leader: field_leader.unwrap_or_default(),
6141            parts: field_parts.unwrap_or_default(),
6142            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
6143        })
6144    }
6145}
6146
6147
6148#[allow(clippy::derivable_impls)]
6149impl ::std::default::Default for self::MultiPutReq {
6150    fn default() -> Self {
6151        Self {
6152            segment: ::std::default::Default::default(),
6153            pairs: ::std::default::Default::default(),
6154            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
6155        }
6156    }
6157}
6158
6159impl ::std::fmt::Debug for self::MultiPutReq {
6160    fn fmt(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6161        formatter
6162            .debug_struct("MultiPutReq")
6163            .field("segment", &self.segment)
6164            .field("pairs", &self.pairs)
6165            .finish()
6166    }
6167}
6168
6169unsafe impl ::std::marker::Send for self::MultiPutReq {}
6170unsafe impl ::std::marker::Sync for self::MultiPutReq {}
6171
6172impl ::fbthrift::GetTType for self::MultiPutReq {
6173    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::Struct;
6174}
6175
6176impl<P> ::fbthrift::Serialize<P> for self::MultiPutReq
6177where
6178    P: ::fbthrift::ProtocolWriter,
6179{
6180    fn write(&self, p: &mut P) {
6181        p.write_struct_begin("MultiPutReq");
6182        p.write_field_begin("segment", ::fbthrift::TType::String, 1);
6183        ::fbthrift::Serialize::write(&self.segment, p);
6184        p.write_field_end();
6185        p.write_field_begin("pairs", ::fbthrift::TType::List, 2);
6186        ::fbthrift::Serialize::write(&self.pairs, p);
6187        p.write_field_end();
6188        p.write_field_stop();
6189        p.write_struct_end();
6190    }
6191}
6192
6193impl<P> ::fbthrift::Deserialize<P> for self::MultiPutReq
6194where
6195    P: ::fbthrift::ProtocolReader,
6196{
6197    fn read(p: &mut P) -> ::anyhow::Result<Self> {
6198        static FIELDS: &[::fbthrift::Field] = &[
6199            ::fbthrift::Field::new("pairs", ::fbthrift::TType::List, 2),
6200            ::fbthrift::Field::new("segment", ::fbthrift::TType::String, 1),
6201        ];
6202        let mut field_segment = ::std::option::Option::None;
6203        let mut field_pairs = ::std::option::Option::None;
6204        let _ = p.read_struct_begin(|_| ())?;
6205        loop {
6206            let (_, fty, fid) = p.read_field_begin(|_| (), FIELDS)?;
6207            match (fty, fid as ::std::primitive::i32) {
6208                (::fbthrift::TType::Stop, _) => break,
6209                (::fbthrift::TType::String, 1) => field_segment = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
6210                (::fbthrift::TType::List, 2) => field_pairs = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
6211                (fty, _) => p.skip(fty)?,
6212            }
6213            p.read_field_end()?;
6214        }
6215        p.read_struct_end()?;
6216        ::std::result::Result::Ok(Self {
6217            segment: field_segment.unwrap_or_default(),
6218            pairs: field_pairs.unwrap_or_default(),
6219            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
6220        })
6221    }
6222}
6223
6224
6225#[allow(clippy::derivable_impls)]
6226impl ::std::default::Default for self::GetReq {
6227    fn default() -> Self {
6228        Self {
6229            segment: ::std::default::Default::default(),
6230            key: ::std::default::Default::default(),
6231            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
6232        }
6233    }
6234}
6235
6236impl ::std::fmt::Debug for self::GetReq {
6237    fn fmt(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6238        formatter
6239            .debug_struct("GetReq")
6240            .field("segment", &self.segment)
6241            .field("key", &self.key)
6242            .finish()
6243    }
6244}
6245
6246unsafe impl ::std::marker::Send for self::GetReq {}
6247unsafe impl ::std::marker::Sync for self::GetReq {}
6248
6249impl ::fbthrift::GetTType for self::GetReq {
6250    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::Struct;
6251}
6252
6253impl<P> ::fbthrift::Serialize<P> for self::GetReq
6254where
6255    P: ::fbthrift::ProtocolWriter,
6256{
6257    fn write(&self, p: &mut P) {
6258        p.write_struct_begin("GetReq");
6259        p.write_field_begin("segment", ::fbthrift::TType::String, 1);
6260        ::fbthrift::Serialize::write(&self.segment, p);
6261        p.write_field_end();
6262        p.write_field_begin("key", ::fbthrift::TType::String, 2);
6263        ::fbthrift::Serialize::write(&self.key, p);
6264        p.write_field_end();
6265        p.write_field_stop();
6266        p.write_struct_end();
6267    }
6268}
6269
6270impl<P> ::fbthrift::Deserialize<P> for self::GetReq
6271where
6272    P: ::fbthrift::ProtocolReader,
6273{
6274    fn read(p: &mut P) -> ::anyhow::Result<Self> {
6275        static FIELDS: &[::fbthrift::Field] = &[
6276            ::fbthrift::Field::new("key", ::fbthrift::TType::String, 2),
6277            ::fbthrift::Field::new("segment", ::fbthrift::TType::String, 1),
6278        ];
6279        let mut field_segment = ::std::option::Option::None;
6280        let mut field_key = ::std::option::Option::None;
6281        let _ = p.read_struct_begin(|_| ())?;
6282        loop {
6283            let (_, fty, fid) = p.read_field_begin(|_| (), FIELDS)?;
6284            match (fty, fid as ::std::primitive::i32) {
6285                (::fbthrift::TType::Stop, _) => break,
6286                (::fbthrift::TType::String, 1) => field_segment = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
6287                (::fbthrift::TType::String, 2) => field_key = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
6288                (fty, _) => p.skip(fty)?,
6289            }
6290            p.read_field_end()?;
6291        }
6292        p.read_struct_end()?;
6293        ::std::result::Result::Ok(Self {
6294            segment: field_segment.unwrap_or_default(),
6295            key: field_key.unwrap_or_default(),
6296            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
6297        })
6298    }
6299}
6300
6301
6302#[allow(clippy::derivable_impls)]
6303impl ::std::default::Default for self::GetResp {
6304    fn default() -> Self {
6305        Self {
6306            code: ::std::default::Default::default(),
6307            leader: ::std::default::Default::default(),
6308            value: ::std::default::Default::default(),
6309            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
6310        }
6311    }
6312}
6313
6314impl ::std::fmt::Debug for self::GetResp {
6315    fn fmt(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6316        formatter
6317            .debug_struct("GetResp")
6318            .field("code", &self.code)
6319            .field("leader", &self.leader)
6320            .field("value", &self.value)
6321            .finish()
6322    }
6323}
6324
6325unsafe impl ::std::marker::Send for self::GetResp {}
6326unsafe impl ::std::marker::Sync for self::GetResp {}
6327
6328impl ::fbthrift::GetTType for self::GetResp {
6329    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::Struct;
6330}
6331
6332impl<P> ::fbthrift::Serialize<P> for self::GetResp
6333where
6334    P: ::fbthrift::ProtocolWriter,
6335{
6336    fn write(&self, p: &mut P) {
6337        p.write_struct_begin("GetResp");
6338        p.write_field_begin("code", ::fbthrift::TType::I32, 1);
6339        ::fbthrift::Serialize::write(&self.code, p);
6340        p.write_field_end();
6341        p.write_field_begin("leader", ::fbthrift::TType::Struct, 2);
6342        ::fbthrift::Serialize::write(&self.leader, p);
6343        p.write_field_end();
6344        p.write_field_begin("value", ::fbthrift::TType::String, 3);
6345        ::fbthrift::Serialize::write(&self.value, p);
6346        p.write_field_end();
6347        p.write_field_stop();
6348        p.write_struct_end();
6349    }
6350}
6351
6352impl<P> ::fbthrift::Deserialize<P> for self::GetResp
6353where
6354    P: ::fbthrift::ProtocolReader,
6355{
6356    fn read(p: &mut P) -> ::anyhow::Result<Self> {
6357        static FIELDS: &[::fbthrift::Field] = &[
6358            ::fbthrift::Field::new("code", ::fbthrift::TType::I32, 1),
6359            ::fbthrift::Field::new("leader", ::fbthrift::TType::Struct, 2),
6360            ::fbthrift::Field::new("value", ::fbthrift::TType::String, 3),
6361        ];
6362        let mut field_code = ::std::option::Option::None;
6363        let mut field_leader = ::std::option::Option::None;
6364        let mut field_value = ::std::option::Option::None;
6365        let _ = p.read_struct_begin(|_| ())?;
6366        loop {
6367            let (_, fty, fid) = p.read_field_begin(|_| (), FIELDS)?;
6368            match (fty, fid as ::std::primitive::i32) {
6369                (::fbthrift::TType::Stop, _) => break,
6370                (::fbthrift::TType::I32, 1) => field_code = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
6371                (::fbthrift::TType::Struct, 2) => field_leader = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
6372                (::fbthrift::TType::String, 3) => field_value = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
6373                (fty, _) => p.skip(fty)?,
6374            }
6375            p.read_field_end()?;
6376        }
6377        p.read_struct_end()?;
6378        ::std::result::Result::Ok(Self {
6379            code: field_code.unwrap_or_default(),
6380            leader: field_leader.unwrap_or_default(),
6381            value: field_value.unwrap_or_default(),
6382            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
6383        })
6384    }
6385}
6386
6387
6388#[allow(clippy::derivable_impls)]
6389impl ::std::default::Default for self::MultiGetReq {
6390    fn default() -> Self {
6391        Self {
6392            segment: ::std::default::Default::default(),
6393            keys: ::std::default::Default::default(),
6394            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
6395        }
6396    }
6397}
6398
6399impl ::std::fmt::Debug for self::MultiGetReq {
6400    fn fmt(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6401        formatter
6402            .debug_struct("MultiGetReq")
6403            .field("segment", &self.segment)
6404            .field("keys", &self.keys)
6405            .finish()
6406    }
6407}
6408
6409unsafe impl ::std::marker::Send for self::MultiGetReq {}
6410unsafe impl ::std::marker::Sync for self::MultiGetReq {}
6411
6412impl ::fbthrift::GetTType for self::MultiGetReq {
6413    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::Struct;
6414}
6415
6416impl<P> ::fbthrift::Serialize<P> for self::MultiGetReq
6417where
6418    P: ::fbthrift::ProtocolWriter,
6419{
6420    fn write(&self, p: &mut P) {
6421        p.write_struct_begin("MultiGetReq");
6422        p.write_field_begin("segment", ::fbthrift::TType::String, 1);
6423        ::fbthrift::Serialize::write(&self.segment, p);
6424        p.write_field_end();
6425        p.write_field_begin("keys", ::fbthrift::TType::List, 2);
6426        ::fbthrift::Serialize::write(&self.keys, p);
6427        p.write_field_end();
6428        p.write_field_stop();
6429        p.write_struct_end();
6430    }
6431}
6432
6433impl<P> ::fbthrift::Deserialize<P> for self::MultiGetReq
6434where
6435    P: ::fbthrift::ProtocolReader,
6436{
6437    fn read(p: &mut P) -> ::anyhow::Result<Self> {
6438        static FIELDS: &[::fbthrift::Field] = &[
6439            ::fbthrift::Field::new("keys", ::fbthrift::TType::List, 2),
6440            ::fbthrift::Field::new("segment", ::fbthrift::TType::String, 1),
6441        ];
6442        let mut field_segment = ::std::option::Option::None;
6443        let mut field_keys = ::std::option::Option::None;
6444        let _ = p.read_struct_begin(|_| ())?;
6445        loop {
6446            let (_, fty, fid) = p.read_field_begin(|_| (), FIELDS)?;
6447            match (fty, fid as ::std::primitive::i32) {
6448                (::fbthrift::TType::Stop, _) => break,
6449                (::fbthrift::TType::String, 1) => field_segment = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
6450                (::fbthrift::TType::List, 2) => field_keys = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
6451                (fty, _) => p.skip(fty)?,
6452            }
6453            p.read_field_end()?;
6454        }
6455        p.read_struct_end()?;
6456        ::std::result::Result::Ok(Self {
6457            segment: field_segment.unwrap_or_default(),
6458            keys: field_keys.unwrap_or_default(),
6459            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
6460        })
6461    }
6462}
6463
6464
6465#[allow(clippy::derivable_impls)]
6466impl ::std::default::Default for self::MultiGetResp {
6467    fn default() -> Self {
6468        Self {
6469            code: ::std::default::Default::default(),
6470            leader: ::std::default::Default::default(),
6471            values: ::std::default::Default::default(),
6472            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
6473        }
6474    }
6475}
6476
6477impl ::std::fmt::Debug for self::MultiGetResp {
6478    fn fmt(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6479        formatter
6480            .debug_struct("MultiGetResp")
6481            .field("code", &self.code)
6482            .field("leader", &self.leader)
6483            .field("values", &self.values)
6484            .finish()
6485    }
6486}
6487
6488unsafe impl ::std::marker::Send for self::MultiGetResp {}
6489unsafe impl ::std::marker::Sync for self::MultiGetResp {}
6490
6491impl ::fbthrift::GetTType for self::MultiGetResp {
6492    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::Struct;
6493}
6494
6495impl<P> ::fbthrift::Serialize<P> for self::MultiGetResp
6496where
6497    P: ::fbthrift::ProtocolWriter,
6498{
6499    fn write(&self, p: &mut P) {
6500        p.write_struct_begin("MultiGetResp");
6501        p.write_field_begin("code", ::fbthrift::TType::I32, 1);
6502        ::fbthrift::Serialize::write(&self.code, p);
6503        p.write_field_end();
6504        p.write_field_begin("leader", ::fbthrift::TType::Struct, 2);
6505        ::fbthrift::Serialize::write(&self.leader, p);
6506        p.write_field_end();
6507        p.write_field_begin("values", ::fbthrift::TType::List, 3);
6508        ::fbthrift::Serialize::write(&self.values, p);
6509        p.write_field_end();
6510        p.write_field_stop();
6511        p.write_struct_end();
6512    }
6513}
6514
6515impl<P> ::fbthrift::Deserialize<P> for self::MultiGetResp
6516where
6517    P: ::fbthrift::ProtocolReader,
6518{
6519    fn read(p: &mut P) -> ::anyhow::Result<Self> {
6520        static FIELDS: &[::fbthrift::Field] = &[
6521            ::fbthrift::Field::new("code", ::fbthrift::TType::I32, 1),
6522            ::fbthrift::Field::new("leader", ::fbthrift::TType::Struct, 2),
6523            ::fbthrift::Field::new("values", ::fbthrift::TType::List, 3),
6524        ];
6525        let mut field_code = ::std::option::Option::None;
6526        let mut field_leader = ::std::option::Option::None;
6527        let mut field_values = ::std::option::Option::None;
6528        let _ = p.read_struct_begin(|_| ())?;
6529        loop {
6530            let (_, fty, fid) = p.read_field_begin(|_| (), FIELDS)?;
6531            match (fty, fid as ::std::primitive::i32) {
6532                (::fbthrift::TType::Stop, _) => break,
6533                (::fbthrift::TType::I32, 1) => field_code = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
6534                (::fbthrift::TType::Struct, 2) => field_leader = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
6535                (::fbthrift::TType::List, 3) => field_values = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
6536                (fty, _) => p.skip(fty)?,
6537            }
6538            p.read_field_end()?;
6539        }
6540        p.read_struct_end()?;
6541        ::std::result::Result::Ok(Self {
6542            code: field_code.unwrap_or_default(),
6543            leader: field_leader.unwrap_or_default(),
6544            values: field_values.unwrap_or_default(),
6545            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
6546        })
6547    }
6548}
6549
6550
6551#[allow(clippy::derivable_impls)]
6552impl ::std::default::Default for self::RemoveReq {
6553    fn default() -> Self {
6554        Self {
6555            segment: ::std::default::Default::default(),
6556            key: ::std::default::Default::default(),
6557            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
6558        }
6559    }
6560}
6561
6562impl ::std::fmt::Debug for self::RemoveReq {
6563    fn fmt(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6564        formatter
6565            .debug_struct("RemoveReq")
6566            .field("segment", &self.segment)
6567            .field("key", &self.key)
6568            .finish()
6569    }
6570}
6571
6572unsafe impl ::std::marker::Send for self::RemoveReq {}
6573unsafe impl ::std::marker::Sync for self::RemoveReq {}
6574
6575impl ::fbthrift::GetTType for self::RemoveReq {
6576    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::Struct;
6577}
6578
6579impl<P> ::fbthrift::Serialize<P> for self::RemoveReq
6580where
6581    P: ::fbthrift::ProtocolWriter,
6582{
6583    fn write(&self, p: &mut P) {
6584        p.write_struct_begin("RemoveReq");
6585        p.write_field_begin("segment", ::fbthrift::TType::String, 1);
6586        ::fbthrift::Serialize::write(&self.segment, p);
6587        p.write_field_end();
6588        p.write_field_begin("key", ::fbthrift::TType::String, 2);
6589        ::fbthrift::Serialize::write(&self.key, p);
6590        p.write_field_end();
6591        p.write_field_stop();
6592        p.write_struct_end();
6593    }
6594}
6595
6596impl<P> ::fbthrift::Deserialize<P> for self::RemoveReq
6597where
6598    P: ::fbthrift::ProtocolReader,
6599{
6600    fn read(p: &mut P) -> ::anyhow::Result<Self> {
6601        static FIELDS: &[::fbthrift::Field] = &[
6602            ::fbthrift::Field::new("key", ::fbthrift::TType::String, 2),
6603            ::fbthrift::Field::new("segment", ::fbthrift::TType::String, 1),
6604        ];
6605        let mut field_segment = ::std::option::Option::None;
6606        let mut field_key = ::std::option::Option::None;
6607        let _ = p.read_struct_begin(|_| ())?;
6608        loop {
6609            let (_, fty, fid) = p.read_field_begin(|_| (), FIELDS)?;
6610            match (fty, fid as ::std::primitive::i32) {
6611                (::fbthrift::TType::Stop, _) => break,
6612                (::fbthrift::TType::String, 1) => field_segment = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
6613                (::fbthrift::TType::String, 2) => field_key = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
6614                (fty, _) => p.skip(fty)?,
6615            }
6616            p.read_field_end()?;
6617        }
6618        p.read_struct_end()?;
6619        ::std::result::Result::Ok(Self {
6620            segment: field_segment.unwrap_or_default(),
6621            key: field_key.unwrap_or_default(),
6622            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
6623        })
6624    }
6625}
6626
6627
6628#[allow(clippy::derivable_impls)]
6629impl ::std::default::Default for self::RemoveRangeReq {
6630    fn default() -> Self {
6631        Self {
6632            segment: ::std::default::Default::default(),
6633            start: ::std::default::Default::default(),
6634            end: ::std::default::Default::default(),
6635            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
6636        }
6637    }
6638}
6639
6640impl ::std::fmt::Debug for self::RemoveRangeReq {
6641    fn fmt(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6642        formatter
6643            .debug_struct("RemoveRangeReq")
6644            .field("segment", &self.segment)
6645            .field("start", &self.start)
6646            .field("end", &self.end)
6647            .finish()
6648    }
6649}
6650
6651unsafe impl ::std::marker::Send for self::RemoveRangeReq {}
6652unsafe impl ::std::marker::Sync for self::RemoveRangeReq {}
6653
6654impl ::fbthrift::GetTType for self::RemoveRangeReq {
6655    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::Struct;
6656}
6657
6658impl<P> ::fbthrift::Serialize<P> for self::RemoveRangeReq
6659where
6660    P: ::fbthrift::ProtocolWriter,
6661{
6662    fn write(&self, p: &mut P) {
6663        p.write_struct_begin("RemoveRangeReq");
6664        p.write_field_begin("segment", ::fbthrift::TType::String, 1);
6665        ::fbthrift::Serialize::write(&self.segment, p);
6666        p.write_field_end();
6667        p.write_field_begin("start", ::fbthrift::TType::String, 2);
6668        ::fbthrift::Serialize::write(&self.start, p);
6669        p.write_field_end();
6670        p.write_field_begin("end", ::fbthrift::TType::String, 3);
6671        ::fbthrift::Serialize::write(&self.end, p);
6672        p.write_field_end();
6673        p.write_field_stop();
6674        p.write_struct_end();
6675    }
6676}
6677
6678impl<P> ::fbthrift::Deserialize<P> for self::RemoveRangeReq
6679where
6680    P: ::fbthrift::ProtocolReader,
6681{
6682    fn read(p: &mut P) -> ::anyhow::Result<Self> {
6683        static FIELDS: &[::fbthrift::Field] = &[
6684            ::fbthrift::Field::new("end", ::fbthrift::TType::String, 3),
6685            ::fbthrift::Field::new("segment", ::fbthrift::TType::String, 1),
6686            ::fbthrift::Field::new("start", ::fbthrift::TType::String, 2),
6687        ];
6688        let mut field_segment = ::std::option::Option::None;
6689        let mut field_start = ::std::option::Option::None;
6690        let mut field_end = ::std::option::Option::None;
6691        let _ = p.read_struct_begin(|_| ())?;
6692        loop {
6693            let (_, fty, fid) = p.read_field_begin(|_| (), FIELDS)?;
6694            match (fty, fid as ::std::primitive::i32) {
6695                (::fbthrift::TType::Stop, _) => break,
6696                (::fbthrift::TType::String, 1) => field_segment = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
6697                (::fbthrift::TType::String, 2) => field_start = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
6698                (::fbthrift::TType::String, 3) => field_end = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
6699                (fty, _) => p.skip(fty)?,
6700            }
6701            p.read_field_end()?;
6702        }
6703        p.read_struct_end()?;
6704        ::std::result::Result::Ok(Self {
6705            segment: field_segment.unwrap_or_default(),
6706            start: field_start.unwrap_or_default(),
6707            end: field_end.unwrap_or_default(),
6708            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
6709        })
6710    }
6711}
6712
6713
6714#[allow(clippy::derivable_impls)]
6715impl ::std::default::Default for self::ScanReq {
6716    fn default() -> Self {
6717        Self {
6718            segment: ::std::default::Default::default(),
6719            start: ::std::default::Default::default(),
6720            end: ::std::default::Default::default(),
6721            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
6722        }
6723    }
6724}
6725
6726impl ::std::fmt::Debug for self::ScanReq {
6727    fn fmt(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6728        formatter
6729            .debug_struct("ScanReq")
6730            .field("segment", &self.segment)
6731            .field("start", &self.start)
6732            .field("end", &self.end)
6733            .finish()
6734    }
6735}
6736
6737unsafe impl ::std::marker::Send for self::ScanReq {}
6738unsafe impl ::std::marker::Sync for self::ScanReq {}
6739
6740impl ::fbthrift::GetTType for self::ScanReq {
6741    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::Struct;
6742}
6743
6744impl<P> ::fbthrift::Serialize<P> for self::ScanReq
6745where
6746    P: ::fbthrift::ProtocolWriter,
6747{
6748    fn write(&self, p: &mut P) {
6749        p.write_struct_begin("ScanReq");
6750        p.write_field_begin("segment", ::fbthrift::TType::String, 1);
6751        ::fbthrift::Serialize::write(&self.segment, p);
6752        p.write_field_end();
6753        p.write_field_begin("start", ::fbthrift::TType::String, 2);
6754        ::fbthrift::Serialize::write(&self.start, p);
6755        p.write_field_end();
6756        p.write_field_begin("end", ::fbthrift::TType::String, 3);
6757        ::fbthrift::Serialize::write(&self.end, p);
6758        p.write_field_end();
6759        p.write_field_stop();
6760        p.write_struct_end();
6761    }
6762}
6763
6764impl<P> ::fbthrift::Deserialize<P> for self::ScanReq
6765where
6766    P: ::fbthrift::ProtocolReader,
6767{
6768    fn read(p: &mut P) -> ::anyhow::Result<Self> {
6769        static FIELDS: &[::fbthrift::Field] = &[
6770            ::fbthrift::Field::new("end", ::fbthrift::TType::String, 3),
6771            ::fbthrift::Field::new("segment", ::fbthrift::TType::String, 1),
6772            ::fbthrift::Field::new("start", ::fbthrift::TType::String, 2),
6773        ];
6774        let mut field_segment = ::std::option::Option::None;
6775        let mut field_start = ::std::option::Option::None;
6776        let mut field_end = ::std::option::Option::None;
6777        let _ = p.read_struct_begin(|_| ())?;
6778        loop {
6779            let (_, fty, fid) = p.read_field_begin(|_| (), FIELDS)?;
6780            match (fty, fid as ::std::primitive::i32) {
6781                (::fbthrift::TType::Stop, _) => break,
6782                (::fbthrift::TType::String, 1) => field_segment = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
6783                (::fbthrift::TType::String, 2) => field_start = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
6784                (::fbthrift::TType::String, 3) => field_end = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
6785                (fty, _) => p.skip(fty)?,
6786            }
6787            p.read_field_end()?;
6788        }
6789        p.read_struct_end()?;
6790        ::std::result::Result::Ok(Self {
6791            segment: field_segment.unwrap_or_default(),
6792            start: field_start.unwrap_or_default(),
6793            end: field_end.unwrap_or_default(),
6794            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
6795        })
6796    }
6797}
6798
6799
6800#[allow(clippy::derivable_impls)]
6801impl ::std::default::Default for self::ScanResp {
6802    fn default() -> Self {
6803        Self {
6804            code: ::std::default::Default::default(),
6805            leader: ::std::default::Default::default(),
6806            values: ::std::default::Default::default(),
6807            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
6808        }
6809    }
6810}
6811
6812impl ::std::fmt::Debug for self::ScanResp {
6813    fn fmt(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6814        formatter
6815            .debug_struct("ScanResp")
6816            .field("code", &self.code)
6817            .field("leader", &self.leader)
6818            .field("values", &self.values)
6819            .finish()
6820    }
6821}
6822
6823unsafe impl ::std::marker::Send for self::ScanResp {}
6824unsafe impl ::std::marker::Sync for self::ScanResp {}
6825
6826impl ::fbthrift::GetTType for self::ScanResp {
6827    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::Struct;
6828}
6829
6830impl<P> ::fbthrift::Serialize<P> for self::ScanResp
6831where
6832    P: ::fbthrift::ProtocolWriter,
6833{
6834    fn write(&self, p: &mut P) {
6835        p.write_struct_begin("ScanResp");
6836        p.write_field_begin("code", ::fbthrift::TType::I32, 1);
6837        ::fbthrift::Serialize::write(&self.code, p);
6838        p.write_field_end();
6839        p.write_field_begin("leader", ::fbthrift::TType::Struct, 2);
6840        ::fbthrift::Serialize::write(&self.leader, p);
6841        p.write_field_end();
6842        p.write_field_begin("values", ::fbthrift::TType::List, 3);
6843        ::fbthrift::Serialize::write(&self.values, p);
6844        p.write_field_end();
6845        p.write_field_stop();
6846        p.write_struct_end();
6847    }
6848}
6849
6850impl<P> ::fbthrift::Deserialize<P> for self::ScanResp
6851where
6852    P: ::fbthrift::ProtocolReader,
6853{
6854    fn read(p: &mut P) -> ::anyhow::Result<Self> {
6855        static FIELDS: &[::fbthrift::Field] = &[
6856            ::fbthrift::Field::new("code", ::fbthrift::TType::I32, 1),
6857            ::fbthrift::Field::new("leader", ::fbthrift::TType::Struct, 2),
6858            ::fbthrift::Field::new("values", ::fbthrift::TType::List, 3),
6859        ];
6860        let mut field_code = ::std::option::Option::None;
6861        let mut field_leader = ::std::option::Option::None;
6862        let mut field_values = ::std::option::Option::None;
6863        let _ = p.read_struct_begin(|_| ())?;
6864        loop {
6865            let (_, fty, fid) = p.read_field_begin(|_| (), FIELDS)?;
6866            match (fty, fid as ::std::primitive::i32) {
6867                (::fbthrift::TType::Stop, _) => break,
6868                (::fbthrift::TType::I32, 1) => field_code = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
6869                (::fbthrift::TType::Struct, 2) => field_leader = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
6870                (::fbthrift::TType::List, 3) => field_values = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
6871                (fty, _) => p.skip(fty)?,
6872            }
6873            p.read_field_end()?;
6874        }
6875        p.read_struct_end()?;
6876        ::std::result::Result::Ok(Self {
6877            code: field_code.unwrap_or_default(),
6878            leader: field_leader.unwrap_or_default(),
6879            values: field_values.unwrap_or_default(),
6880            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
6881        })
6882    }
6883}
6884
6885
6886#[allow(clippy::derivable_impls)]
6887impl ::std::default::Default for self::HBResp {
6888    fn default() -> Self {
6889        Self {
6890            code: ::std::default::Default::default(),
6891            leader: ::std::default::Default::default(),
6892            cluster_id: ::std::default::Default::default(),
6893            last_update_time_in_ms: ::std::default::Default::default(),
6894            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
6895        }
6896    }
6897}
6898
6899impl ::std::fmt::Debug for self::HBResp {
6900    fn fmt(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6901        formatter
6902            .debug_struct("HBResp")
6903            .field("code", &self.code)
6904            .field("leader", &self.leader)
6905            .field("cluster_id", &self.cluster_id)
6906            .field("last_update_time_in_ms", &self.last_update_time_in_ms)
6907            .finish()
6908    }
6909}
6910
6911unsafe impl ::std::marker::Send for self::HBResp {}
6912unsafe impl ::std::marker::Sync for self::HBResp {}
6913
6914impl ::fbthrift::GetTType for self::HBResp {
6915    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::Struct;
6916}
6917
6918impl<P> ::fbthrift::Serialize<P> for self::HBResp
6919where
6920    P: ::fbthrift::ProtocolWriter,
6921{
6922    fn write(&self, p: &mut P) {
6923        p.write_struct_begin("HBResp");
6924        p.write_field_begin("code", ::fbthrift::TType::I32, 1);
6925        ::fbthrift::Serialize::write(&self.code, p);
6926        p.write_field_end();
6927        p.write_field_begin("leader", ::fbthrift::TType::Struct, 2);
6928        ::fbthrift::Serialize::write(&self.leader, p);
6929        p.write_field_end();
6930        p.write_field_begin("cluster_id", ::fbthrift::TType::I64, 3);
6931        ::fbthrift::Serialize::write(&self.cluster_id, p);
6932        p.write_field_end();
6933        p.write_field_begin("last_update_time_in_ms", ::fbthrift::TType::I64, 4);
6934        ::fbthrift::Serialize::write(&self.last_update_time_in_ms, p);
6935        p.write_field_end();
6936        p.write_field_stop();
6937        p.write_struct_end();
6938    }
6939}
6940
6941impl<P> ::fbthrift::Deserialize<P> for self::HBResp
6942where
6943    P: ::fbthrift::ProtocolReader,
6944{
6945    fn read(p: &mut P) -> ::anyhow::Result<Self> {
6946        static FIELDS: &[::fbthrift::Field] = &[
6947            ::fbthrift::Field::new("cluster_id", ::fbthrift::TType::I64, 3),
6948            ::fbthrift::Field::new("code", ::fbthrift::TType::I32, 1),
6949            ::fbthrift::Field::new("last_update_time_in_ms", ::fbthrift::TType::I64, 4),
6950            ::fbthrift::Field::new("leader", ::fbthrift::TType::Struct, 2),
6951        ];
6952        let mut field_code = ::std::option::Option::None;
6953        let mut field_leader = ::std::option::Option::None;
6954        let mut field_cluster_id = ::std::option::Option::None;
6955        let mut field_last_update_time_in_ms = ::std::option::Option::None;
6956        let _ = p.read_struct_begin(|_| ())?;
6957        loop {
6958            let (_, fty, fid) = p.read_field_begin(|_| (), FIELDS)?;
6959            match (fty, fid as ::std::primitive::i32) {
6960                (::fbthrift::TType::Stop, _) => break,
6961                (::fbthrift::TType::I32, 1) => field_code = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
6962                (::fbthrift::TType::Struct, 2) => field_leader = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
6963                (::fbthrift::TType::I64, 3) => field_cluster_id = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
6964                (::fbthrift::TType::I64, 4) => field_last_update_time_in_ms = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
6965                (fty, _) => p.skip(fty)?,
6966            }
6967            p.read_field_end()?;
6968        }
6969        p.read_struct_end()?;
6970        ::std::result::Result::Ok(Self {
6971            code: field_code.unwrap_or_default(),
6972            leader: field_leader.unwrap_or_default(),
6973            cluster_id: field_cluster_id.unwrap_or_default(),
6974            last_update_time_in_ms: field_last_update_time_in_ms.unwrap_or_default(),
6975            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
6976        })
6977    }
6978}
6979
6980
6981#[allow(clippy::derivable_impls)]
6982impl ::std::default::Default for self::HBReq {
6983    fn default() -> Self {
6984        Self {
6985            in_storaged: ::std::default::Default::default(),
6986            host: ::std::default::Default::default(),
6987            cluster_id: ::std::default::Default::default(),
6988            leader_partIds: ::std::option::Option::None,
6989            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
6990        }
6991    }
6992}
6993
6994impl ::std::fmt::Debug for self::HBReq {
6995    fn fmt(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
6996        formatter
6997            .debug_struct("HBReq")
6998            .field("in_storaged", &self.in_storaged)
6999            .field("host", &self.host)
7000            .field("cluster_id", &self.cluster_id)
7001            .field("leader_partIds", &self.leader_partIds)
7002            .finish()
7003    }
7004}
7005
7006unsafe impl ::std::marker::Send for self::HBReq {}
7007unsafe impl ::std::marker::Sync for self::HBReq {}
7008
7009impl ::fbthrift::GetTType for self::HBReq {
7010    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::Struct;
7011}
7012
7013impl<P> ::fbthrift::Serialize<P> for self::HBReq
7014where
7015    P: ::fbthrift::ProtocolWriter,
7016{
7017    fn write(&self, p: &mut P) {
7018        p.write_struct_begin("HBReq");
7019        p.write_field_begin("in_storaged", ::fbthrift::TType::Bool, 1);
7020        ::fbthrift::Serialize::write(&self.in_storaged, p);
7021        p.write_field_end();
7022        p.write_field_begin("host", ::fbthrift::TType::Struct, 2);
7023        ::fbthrift::Serialize::write(&self.host, p);
7024        p.write_field_end();
7025        p.write_field_begin("cluster_id", ::fbthrift::TType::I64, 3);
7026        ::fbthrift::Serialize::write(&self.cluster_id, p);
7027        p.write_field_end();
7028        if let ::std::option::Option::Some(some) = &self.leader_partIds {
7029            p.write_field_begin("leader_partIds", ::fbthrift::TType::Map, 4);
7030            ::fbthrift::Serialize::write(some, p);
7031            p.write_field_end();
7032        }
7033        p.write_field_stop();
7034        p.write_struct_end();
7035    }
7036}
7037
7038impl<P> ::fbthrift::Deserialize<P> for self::HBReq
7039where
7040    P: ::fbthrift::ProtocolReader,
7041{
7042    fn read(p: &mut P) -> ::anyhow::Result<Self> {
7043        static FIELDS: &[::fbthrift::Field] = &[
7044            ::fbthrift::Field::new("cluster_id", ::fbthrift::TType::I64, 3),
7045            ::fbthrift::Field::new("host", ::fbthrift::TType::Struct, 2),
7046            ::fbthrift::Field::new("in_storaged", ::fbthrift::TType::Bool, 1),
7047            ::fbthrift::Field::new("leader_partIds", ::fbthrift::TType::Map, 4),
7048        ];
7049        let mut field_in_storaged = ::std::option::Option::None;
7050        let mut field_host = ::std::option::Option::None;
7051        let mut field_cluster_id = ::std::option::Option::None;
7052        let mut field_leader_partIds = ::std::option::Option::None;
7053        let _ = p.read_struct_begin(|_| ())?;
7054        loop {
7055            let (_, fty, fid) = p.read_field_begin(|_| (), FIELDS)?;
7056            match (fty, fid as ::std::primitive::i32) {
7057                (::fbthrift::TType::Stop, _) => break,
7058                (::fbthrift::TType::Bool, 1) => field_in_storaged = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
7059                (::fbthrift::TType::Struct, 2) => field_host = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
7060                (::fbthrift::TType::I64, 3) => field_cluster_id = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
7061                (::fbthrift::TType::Map, 4) => field_leader_partIds = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
7062                (fty, _) => p.skip(fty)?,
7063            }
7064            p.read_field_end()?;
7065        }
7066        p.read_struct_end()?;
7067        ::std::result::Result::Ok(Self {
7068            in_storaged: field_in_storaged.unwrap_or_default(),
7069            host: field_host.unwrap_or_default(),
7070            cluster_id: field_cluster_id.unwrap_or_default(),
7071            leader_partIds: field_leader_partIds,
7072            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
7073        })
7074    }
7075}
7076
7077
7078#[allow(clippy::derivable_impls)]
7079impl ::std::default::Default for self::CreateTagIndexReq {
7080    fn default() -> Self {
7081        Self {
7082            space_id: ::std::default::Default::default(),
7083            index_name: ::std::default::Default::default(),
7084            tag_name: ::std::default::Default::default(),
7085            fields: ::std::default::Default::default(),
7086            if_not_exists: ::std::default::Default::default(),
7087            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
7088        }
7089    }
7090}
7091
7092impl ::std::fmt::Debug for self::CreateTagIndexReq {
7093    fn fmt(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7094        formatter
7095            .debug_struct("CreateTagIndexReq")
7096            .field("space_id", &self.space_id)
7097            .field("index_name", &self.index_name)
7098            .field("tag_name", &self.tag_name)
7099            .field("fields", &self.fields)
7100            .field("if_not_exists", &self.if_not_exists)
7101            .finish()
7102    }
7103}
7104
7105unsafe impl ::std::marker::Send for self::CreateTagIndexReq {}
7106unsafe impl ::std::marker::Sync for self::CreateTagIndexReq {}
7107
7108impl ::fbthrift::GetTType for self::CreateTagIndexReq {
7109    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::Struct;
7110}
7111
7112impl<P> ::fbthrift::Serialize<P> for self::CreateTagIndexReq
7113where
7114    P: ::fbthrift::ProtocolWriter,
7115{
7116    fn write(&self, p: &mut P) {
7117        p.write_struct_begin("CreateTagIndexReq");
7118        p.write_field_begin("space_id", ::fbthrift::TType::I32, 1);
7119        ::fbthrift::Serialize::write(&self.space_id, p);
7120        p.write_field_end();
7121        p.write_field_begin("index_name", ::fbthrift::TType::String, 2);
7122        ::fbthrift::Serialize::write(&self.index_name, p);
7123        p.write_field_end();
7124        p.write_field_begin("tag_name", ::fbthrift::TType::String, 3);
7125        ::fbthrift::Serialize::write(&self.tag_name, p);
7126        p.write_field_end();
7127        p.write_field_begin("fields", ::fbthrift::TType::List, 4);
7128        ::fbthrift::Serialize::write(&self.fields, p);
7129        p.write_field_end();
7130        p.write_field_begin("if_not_exists", ::fbthrift::TType::Bool, 5);
7131        ::fbthrift::Serialize::write(&self.if_not_exists, p);
7132        p.write_field_end();
7133        p.write_field_stop();
7134        p.write_struct_end();
7135    }
7136}
7137
7138impl<P> ::fbthrift::Deserialize<P> for self::CreateTagIndexReq
7139where
7140    P: ::fbthrift::ProtocolReader,
7141{
7142    fn read(p: &mut P) -> ::anyhow::Result<Self> {
7143        static FIELDS: &[::fbthrift::Field] = &[
7144            ::fbthrift::Field::new("fields", ::fbthrift::TType::List, 4),
7145            ::fbthrift::Field::new("if_not_exists", ::fbthrift::TType::Bool, 5),
7146            ::fbthrift::Field::new("index_name", ::fbthrift::TType::String, 2),
7147            ::fbthrift::Field::new("space_id", ::fbthrift::TType::I32, 1),
7148            ::fbthrift::Field::new("tag_name", ::fbthrift::TType::String, 3),
7149        ];
7150        let mut field_space_id = ::std::option::Option::None;
7151        let mut field_index_name = ::std::option::Option::None;
7152        let mut field_tag_name = ::std::option::Option::None;
7153        let mut field_fields = ::std::option::Option::None;
7154        let mut field_if_not_exists = ::std::option::Option::None;
7155        let _ = p.read_struct_begin(|_| ())?;
7156        loop {
7157            let (_, fty, fid) = p.read_field_begin(|_| (), FIELDS)?;
7158            match (fty, fid as ::std::primitive::i32) {
7159                (::fbthrift::TType::Stop, _) => break,
7160                (::fbthrift::TType::I32, 1) => field_space_id = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
7161                (::fbthrift::TType::String, 2) => field_index_name = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
7162                (::fbthrift::TType::String, 3) => field_tag_name = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
7163                (::fbthrift::TType::List, 4) => field_fields = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
7164                (::fbthrift::TType::Bool, 5) => field_if_not_exists = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
7165                (fty, _) => p.skip(fty)?,
7166            }
7167            p.read_field_end()?;
7168        }
7169        p.read_struct_end()?;
7170        ::std::result::Result::Ok(Self {
7171            space_id: field_space_id.unwrap_or_default(),
7172            index_name: field_index_name.unwrap_or_default(),
7173            tag_name: field_tag_name.unwrap_or_default(),
7174            fields: field_fields.unwrap_or_default(),
7175            if_not_exists: field_if_not_exists.unwrap_or_default(),
7176            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
7177        })
7178    }
7179}
7180
7181
7182#[allow(clippy::derivable_impls)]
7183impl ::std::default::Default for self::DropTagIndexReq {
7184    fn default() -> Self {
7185        Self {
7186            space_id: ::std::default::Default::default(),
7187            index_name: ::std::default::Default::default(),
7188            if_exists: ::std::default::Default::default(),
7189            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
7190        }
7191    }
7192}
7193
7194impl ::std::fmt::Debug for self::DropTagIndexReq {
7195    fn fmt(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7196        formatter
7197            .debug_struct("DropTagIndexReq")
7198            .field("space_id", &self.space_id)
7199            .field("index_name", &self.index_name)
7200            .field("if_exists", &self.if_exists)
7201            .finish()
7202    }
7203}
7204
7205unsafe impl ::std::marker::Send for self::DropTagIndexReq {}
7206unsafe impl ::std::marker::Sync for self::DropTagIndexReq {}
7207
7208impl ::fbthrift::GetTType for self::DropTagIndexReq {
7209    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::Struct;
7210}
7211
7212impl<P> ::fbthrift::Serialize<P> for self::DropTagIndexReq
7213where
7214    P: ::fbthrift::ProtocolWriter,
7215{
7216    fn write(&self, p: &mut P) {
7217        p.write_struct_begin("DropTagIndexReq");
7218        p.write_field_begin("space_id", ::fbthrift::TType::I32, 1);
7219        ::fbthrift::Serialize::write(&self.space_id, p);
7220        p.write_field_end();
7221        p.write_field_begin("index_name", ::fbthrift::TType::String, 2);
7222        ::fbthrift::Serialize::write(&self.index_name, p);
7223        p.write_field_end();
7224        p.write_field_begin("if_exists", ::fbthrift::TType::Bool, 3);
7225        ::fbthrift::Serialize::write(&self.if_exists, p);
7226        p.write_field_end();
7227        p.write_field_stop();
7228        p.write_struct_end();
7229    }
7230}
7231
7232impl<P> ::fbthrift::Deserialize<P> for self::DropTagIndexReq
7233where
7234    P: ::fbthrift::ProtocolReader,
7235{
7236    fn read(p: &mut P) -> ::anyhow::Result<Self> {
7237        static FIELDS: &[::fbthrift::Field] = &[
7238            ::fbthrift::Field::new("if_exists", ::fbthrift::TType::Bool, 3),
7239            ::fbthrift::Field::new("index_name", ::fbthrift::TType::String, 2),
7240            ::fbthrift::Field::new("space_id", ::fbthrift::TType::I32, 1),
7241        ];
7242        let mut field_space_id = ::std::option::Option::None;
7243        let mut field_index_name = ::std::option::Option::None;
7244        let mut field_if_exists = ::std::option::Option::None;
7245        let _ = p.read_struct_begin(|_| ())?;
7246        loop {
7247            let (_, fty, fid) = p.read_field_begin(|_| (), FIELDS)?;
7248            match (fty, fid as ::std::primitive::i32) {
7249                (::fbthrift::TType::Stop, _) => break,
7250                (::fbthrift::TType::I32, 1) => field_space_id = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
7251                (::fbthrift::TType::String, 2) => field_index_name = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
7252                (::fbthrift::TType::Bool, 3) => field_if_exists = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
7253                (fty, _) => p.skip(fty)?,
7254            }
7255            p.read_field_end()?;
7256        }
7257        p.read_struct_end()?;
7258        ::std::result::Result::Ok(Self {
7259            space_id: field_space_id.unwrap_or_default(),
7260            index_name: field_index_name.unwrap_or_default(),
7261            if_exists: field_if_exists.unwrap_or_default(),
7262            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
7263        })
7264    }
7265}
7266
7267
7268#[allow(clippy::derivable_impls)]
7269impl ::std::default::Default for self::GetTagIndexReq {
7270    fn default() -> Self {
7271        Self {
7272            space_id: ::std::default::Default::default(),
7273            index_name: ::std::default::Default::default(),
7274            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
7275        }
7276    }
7277}
7278
7279impl ::std::fmt::Debug for self::GetTagIndexReq {
7280    fn fmt(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7281        formatter
7282            .debug_struct("GetTagIndexReq")
7283            .field("space_id", &self.space_id)
7284            .field("index_name", &self.index_name)
7285            .finish()
7286    }
7287}
7288
7289unsafe impl ::std::marker::Send for self::GetTagIndexReq {}
7290unsafe impl ::std::marker::Sync for self::GetTagIndexReq {}
7291
7292impl ::fbthrift::GetTType for self::GetTagIndexReq {
7293    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::Struct;
7294}
7295
7296impl<P> ::fbthrift::Serialize<P> for self::GetTagIndexReq
7297where
7298    P: ::fbthrift::ProtocolWriter,
7299{
7300    fn write(&self, p: &mut P) {
7301        p.write_struct_begin("GetTagIndexReq");
7302        p.write_field_begin("space_id", ::fbthrift::TType::I32, 1);
7303        ::fbthrift::Serialize::write(&self.space_id, p);
7304        p.write_field_end();
7305        p.write_field_begin("index_name", ::fbthrift::TType::String, 2);
7306        ::fbthrift::Serialize::write(&self.index_name, p);
7307        p.write_field_end();
7308        p.write_field_stop();
7309        p.write_struct_end();
7310    }
7311}
7312
7313impl<P> ::fbthrift::Deserialize<P> for self::GetTagIndexReq
7314where
7315    P: ::fbthrift::ProtocolReader,
7316{
7317    fn read(p: &mut P) -> ::anyhow::Result<Self> {
7318        static FIELDS: &[::fbthrift::Field] = &[
7319            ::fbthrift::Field::new("index_name", ::fbthrift::TType::String, 2),
7320            ::fbthrift::Field::new("space_id", ::fbthrift::TType::I32, 1),
7321        ];
7322        let mut field_space_id = ::std::option::Option::None;
7323        let mut field_index_name = ::std::option::Option::None;
7324        let _ = p.read_struct_begin(|_| ())?;
7325        loop {
7326            let (_, fty, fid) = p.read_field_begin(|_| (), FIELDS)?;
7327            match (fty, fid as ::std::primitive::i32) {
7328                (::fbthrift::TType::Stop, _) => break,
7329                (::fbthrift::TType::I32, 1) => field_space_id = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
7330                (::fbthrift::TType::String, 2) => field_index_name = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
7331                (fty, _) => p.skip(fty)?,
7332            }
7333            p.read_field_end()?;
7334        }
7335        p.read_struct_end()?;
7336        ::std::result::Result::Ok(Self {
7337            space_id: field_space_id.unwrap_or_default(),
7338            index_name: field_index_name.unwrap_or_default(),
7339            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
7340        })
7341    }
7342}
7343
7344
7345#[allow(clippy::derivable_impls)]
7346impl ::std::default::Default for self::GetTagIndexResp {
7347    fn default() -> Self {
7348        Self {
7349            code: ::std::default::Default::default(),
7350            leader: ::std::default::Default::default(),
7351            item: ::std::default::Default::default(),
7352            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
7353        }
7354    }
7355}
7356
7357impl ::std::fmt::Debug for self::GetTagIndexResp {
7358    fn fmt(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7359        formatter
7360            .debug_struct("GetTagIndexResp")
7361            .field("code", &self.code)
7362            .field("leader", &self.leader)
7363            .field("item", &self.item)
7364            .finish()
7365    }
7366}
7367
7368unsafe impl ::std::marker::Send for self::GetTagIndexResp {}
7369unsafe impl ::std::marker::Sync for self::GetTagIndexResp {}
7370
7371impl ::fbthrift::GetTType for self::GetTagIndexResp {
7372    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::Struct;
7373}
7374
7375impl<P> ::fbthrift::Serialize<P> for self::GetTagIndexResp
7376where
7377    P: ::fbthrift::ProtocolWriter,
7378{
7379    fn write(&self, p: &mut P) {
7380        p.write_struct_begin("GetTagIndexResp");
7381        p.write_field_begin("code", ::fbthrift::TType::I32, 1);
7382        ::fbthrift::Serialize::write(&self.code, p);
7383        p.write_field_end();
7384        p.write_field_begin("leader", ::fbthrift::TType::Struct, 2);
7385        ::fbthrift::Serialize::write(&self.leader, p);
7386        p.write_field_end();
7387        p.write_field_begin("item", ::fbthrift::TType::Struct, 3);
7388        ::fbthrift::Serialize::write(&self.item, p);
7389        p.write_field_end();
7390        p.write_field_stop();
7391        p.write_struct_end();
7392    }
7393}
7394
7395impl<P> ::fbthrift::Deserialize<P> for self::GetTagIndexResp
7396where
7397    P: ::fbthrift::ProtocolReader,
7398{
7399    fn read(p: &mut P) -> ::anyhow::Result<Self> {
7400        static FIELDS: &[::fbthrift::Field] = &[
7401            ::fbthrift::Field::new("code", ::fbthrift::TType::I32, 1),
7402            ::fbthrift::Field::new("item", ::fbthrift::TType::Struct, 3),
7403            ::fbthrift::Field::new("leader", ::fbthrift::TType::Struct, 2),
7404        ];
7405        let mut field_code = ::std::option::Option::None;
7406        let mut field_leader = ::std::option::Option::None;
7407        let mut field_item = ::std::option::Option::None;
7408        let _ = p.read_struct_begin(|_| ())?;
7409        loop {
7410            let (_, fty, fid) = p.read_field_begin(|_| (), FIELDS)?;
7411            match (fty, fid as ::std::primitive::i32) {
7412                (::fbthrift::TType::Stop, _) => break,
7413                (::fbthrift::TType::I32, 1) => field_code = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
7414                (::fbthrift::TType::Struct, 2) => field_leader = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
7415                (::fbthrift::TType::Struct, 3) => field_item = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
7416                (fty, _) => p.skip(fty)?,
7417            }
7418            p.read_field_end()?;
7419        }
7420        p.read_struct_end()?;
7421        ::std::result::Result::Ok(Self {
7422            code: field_code.unwrap_or_default(),
7423            leader: field_leader.unwrap_or_default(),
7424            item: field_item.unwrap_or_default(),
7425            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
7426        })
7427    }
7428}
7429
7430
7431#[allow(clippy::derivable_impls)]
7432impl ::std::default::Default for self::ListTagIndexesReq {
7433    fn default() -> Self {
7434        Self {
7435            space_id: ::std::default::Default::default(),
7436            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
7437        }
7438    }
7439}
7440
7441impl ::std::fmt::Debug for self::ListTagIndexesReq {
7442    fn fmt(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7443        formatter
7444            .debug_struct("ListTagIndexesReq")
7445            .field("space_id", &self.space_id)
7446            .finish()
7447    }
7448}
7449
7450unsafe impl ::std::marker::Send for self::ListTagIndexesReq {}
7451unsafe impl ::std::marker::Sync for self::ListTagIndexesReq {}
7452
7453impl ::fbthrift::GetTType for self::ListTagIndexesReq {
7454    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::Struct;
7455}
7456
7457impl<P> ::fbthrift::Serialize<P> for self::ListTagIndexesReq
7458where
7459    P: ::fbthrift::ProtocolWriter,
7460{
7461    fn write(&self, p: &mut P) {
7462        p.write_struct_begin("ListTagIndexesReq");
7463        p.write_field_begin("space_id", ::fbthrift::TType::I32, 1);
7464        ::fbthrift::Serialize::write(&self.space_id, p);
7465        p.write_field_end();
7466        p.write_field_stop();
7467        p.write_struct_end();
7468    }
7469}
7470
7471impl<P> ::fbthrift::Deserialize<P> for self::ListTagIndexesReq
7472where
7473    P: ::fbthrift::ProtocolReader,
7474{
7475    fn read(p: &mut P) -> ::anyhow::Result<Self> {
7476        static FIELDS: &[::fbthrift::Field] = &[
7477            ::fbthrift::Field::new("space_id", ::fbthrift::TType::I32, 1),
7478        ];
7479        let mut field_space_id = ::std::option::Option::None;
7480        let _ = p.read_struct_begin(|_| ())?;
7481        loop {
7482            let (_, fty, fid) = p.read_field_begin(|_| (), FIELDS)?;
7483            match (fty, fid as ::std::primitive::i32) {
7484                (::fbthrift::TType::Stop, _) => break,
7485                (::fbthrift::TType::I32, 1) => field_space_id = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
7486                (fty, _) => p.skip(fty)?,
7487            }
7488            p.read_field_end()?;
7489        }
7490        p.read_struct_end()?;
7491        ::std::result::Result::Ok(Self {
7492            space_id: field_space_id.unwrap_or_default(),
7493            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
7494        })
7495    }
7496}
7497
7498
7499#[allow(clippy::derivable_impls)]
7500impl ::std::default::Default for self::ListTagIndexesResp {
7501    fn default() -> Self {
7502        Self {
7503            code: ::std::default::Default::default(),
7504            leader: ::std::default::Default::default(),
7505            items: ::std::default::Default::default(),
7506            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
7507        }
7508    }
7509}
7510
7511impl ::std::fmt::Debug for self::ListTagIndexesResp {
7512    fn fmt(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7513        formatter
7514            .debug_struct("ListTagIndexesResp")
7515            .field("code", &self.code)
7516            .field("leader", &self.leader)
7517            .field("items", &self.items)
7518            .finish()
7519    }
7520}
7521
7522unsafe impl ::std::marker::Send for self::ListTagIndexesResp {}
7523unsafe impl ::std::marker::Sync for self::ListTagIndexesResp {}
7524
7525impl ::fbthrift::GetTType for self::ListTagIndexesResp {
7526    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::Struct;
7527}
7528
7529impl<P> ::fbthrift::Serialize<P> for self::ListTagIndexesResp
7530where
7531    P: ::fbthrift::ProtocolWriter,
7532{
7533    fn write(&self, p: &mut P) {
7534        p.write_struct_begin("ListTagIndexesResp");
7535        p.write_field_begin("code", ::fbthrift::TType::I32, 1);
7536        ::fbthrift::Serialize::write(&self.code, p);
7537        p.write_field_end();
7538        p.write_field_begin("leader", ::fbthrift::TType::Struct, 2);
7539        ::fbthrift::Serialize::write(&self.leader, p);
7540        p.write_field_end();
7541        p.write_field_begin("items", ::fbthrift::TType::List, 3);
7542        ::fbthrift::Serialize::write(&self.items, p);
7543        p.write_field_end();
7544        p.write_field_stop();
7545        p.write_struct_end();
7546    }
7547}
7548
7549impl<P> ::fbthrift::Deserialize<P> for self::ListTagIndexesResp
7550where
7551    P: ::fbthrift::ProtocolReader,
7552{
7553    fn read(p: &mut P) -> ::anyhow::Result<Self> {
7554        static FIELDS: &[::fbthrift::Field] = &[
7555            ::fbthrift::Field::new("code", ::fbthrift::TType::I32, 1),
7556            ::fbthrift::Field::new("items", ::fbthrift::TType::List, 3),
7557            ::fbthrift::Field::new("leader", ::fbthrift::TType::Struct, 2),
7558        ];
7559        let mut field_code = ::std::option::Option::None;
7560        let mut field_leader = ::std::option::Option::None;
7561        let mut field_items = ::std::option::Option::None;
7562        let _ = p.read_struct_begin(|_| ())?;
7563        loop {
7564            let (_, fty, fid) = p.read_field_begin(|_| (), FIELDS)?;
7565            match (fty, fid as ::std::primitive::i32) {
7566                (::fbthrift::TType::Stop, _) => break,
7567                (::fbthrift::TType::I32, 1) => field_code = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
7568                (::fbthrift::TType::Struct, 2) => field_leader = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
7569                (::fbthrift::TType::List, 3) => field_items = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
7570                (fty, _) => p.skip(fty)?,
7571            }
7572            p.read_field_end()?;
7573        }
7574        p.read_struct_end()?;
7575        ::std::result::Result::Ok(Self {
7576            code: field_code.unwrap_or_default(),
7577            leader: field_leader.unwrap_or_default(),
7578            items: field_items.unwrap_or_default(),
7579            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
7580        })
7581    }
7582}
7583
7584
7585#[allow(clippy::derivable_impls)]
7586impl ::std::default::Default for self::CreateEdgeIndexReq {
7587    fn default() -> Self {
7588        Self {
7589            space_id: ::std::default::Default::default(),
7590            index_name: ::std::default::Default::default(),
7591            edge_name: ::std::default::Default::default(),
7592            fields: ::std::default::Default::default(),
7593            if_not_exists: ::std::default::Default::default(),
7594            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
7595        }
7596    }
7597}
7598
7599impl ::std::fmt::Debug for self::CreateEdgeIndexReq {
7600    fn fmt(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7601        formatter
7602            .debug_struct("CreateEdgeIndexReq")
7603            .field("space_id", &self.space_id)
7604            .field("index_name", &self.index_name)
7605            .field("edge_name", &self.edge_name)
7606            .field("fields", &self.fields)
7607            .field("if_not_exists", &self.if_not_exists)
7608            .finish()
7609    }
7610}
7611
7612unsafe impl ::std::marker::Send for self::CreateEdgeIndexReq {}
7613unsafe impl ::std::marker::Sync for self::CreateEdgeIndexReq {}
7614
7615impl ::fbthrift::GetTType for self::CreateEdgeIndexReq {
7616    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::Struct;
7617}
7618
7619impl<P> ::fbthrift::Serialize<P> for self::CreateEdgeIndexReq
7620where
7621    P: ::fbthrift::ProtocolWriter,
7622{
7623    fn write(&self, p: &mut P) {
7624        p.write_struct_begin("CreateEdgeIndexReq");
7625        p.write_field_begin("space_id", ::fbthrift::TType::I32, 1);
7626        ::fbthrift::Serialize::write(&self.space_id, p);
7627        p.write_field_end();
7628        p.write_field_begin("index_name", ::fbthrift::TType::String, 2);
7629        ::fbthrift::Serialize::write(&self.index_name, p);
7630        p.write_field_end();
7631        p.write_field_begin("edge_name", ::fbthrift::TType::String, 3);
7632        ::fbthrift::Serialize::write(&self.edge_name, p);
7633        p.write_field_end();
7634        p.write_field_begin("fields", ::fbthrift::TType::List, 4);
7635        ::fbthrift::Serialize::write(&self.fields, p);
7636        p.write_field_end();
7637        p.write_field_begin("if_not_exists", ::fbthrift::TType::Bool, 5);
7638        ::fbthrift::Serialize::write(&self.if_not_exists, p);
7639        p.write_field_end();
7640        p.write_field_stop();
7641        p.write_struct_end();
7642    }
7643}
7644
7645impl<P> ::fbthrift::Deserialize<P> for self::CreateEdgeIndexReq
7646where
7647    P: ::fbthrift::ProtocolReader,
7648{
7649    fn read(p: &mut P) -> ::anyhow::Result<Self> {
7650        static FIELDS: &[::fbthrift::Field] = &[
7651            ::fbthrift::Field::new("edge_name", ::fbthrift::TType::String, 3),
7652            ::fbthrift::Field::new("fields", ::fbthrift::TType::List, 4),
7653            ::fbthrift::Field::new("if_not_exists", ::fbthrift::TType::Bool, 5),
7654            ::fbthrift::Field::new("index_name", ::fbthrift::TType::String, 2),
7655            ::fbthrift::Field::new("space_id", ::fbthrift::TType::I32, 1),
7656        ];
7657        let mut field_space_id = ::std::option::Option::None;
7658        let mut field_index_name = ::std::option::Option::None;
7659        let mut field_edge_name = ::std::option::Option::None;
7660        let mut field_fields = ::std::option::Option::None;
7661        let mut field_if_not_exists = ::std::option::Option::None;
7662        let _ = p.read_struct_begin(|_| ())?;
7663        loop {
7664            let (_, fty, fid) = p.read_field_begin(|_| (), FIELDS)?;
7665            match (fty, fid as ::std::primitive::i32) {
7666                (::fbthrift::TType::Stop, _) => break,
7667                (::fbthrift::TType::I32, 1) => field_space_id = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
7668                (::fbthrift::TType::String, 2) => field_index_name = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
7669                (::fbthrift::TType::String, 3) => field_edge_name = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
7670                (::fbthrift::TType::List, 4) => field_fields = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
7671                (::fbthrift::TType::Bool, 5) => field_if_not_exists = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
7672                (fty, _) => p.skip(fty)?,
7673            }
7674            p.read_field_end()?;
7675        }
7676        p.read_struct_end()?;
7677        ::std::result::Result::Ok(Self {
7678            space_id: field_space_id.unwrap_or_default(),
7679            index_name: field_index_name.unwrap_or_default(),
7680            edge_name: field_edge_name.unwrap_or_default(),
7681            fields: field_fields.unwrap_or_default(),
7682            if_not_exists: field_if_not_exists.unwrap_or_default(),
7683            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
7684        })
7685    }
7686}
7687
7688
7689#[allow(clippy::derivable_impls)]
7690impl ::std::default::Default for self::DropEdgeIndexReq {
7691    fn default() -> Self {
7692        Self {
7693            space_id: ::std::default::Default::default(),
7694            index_name: ::std::default::Default::default(),
7695            if_exists: ::std::default::Default::default(),
7696            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
7697        }
7698    }
7699}
7700
7701impl ::std::fmt::Debug for self::DropEdgeIndexReq {
7702    fn fmt(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7703        formatter
7704            .debug_struct("DropEdgeIndexReq")
7705            .field("space_id", &self.space_id)
7706            .field("index_name", &self.index_name)
7707            .field("if_exists", &self.if_exists)
7708            .finish()
7709    }
7710}
7711
7712unsafe impl ::std::marker::Send for self::DropEdgeIndexReq {}
7713unsafe impl ::std::marker::Sync for self::DropEdgeIndexReq {}
7714
7715impl ::fbthrift::GetTType for self::DropEdgeIndexReq {
7716    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::Struct;
7717}
7718
7719impl<P> ::fbthrift::Serialize<P> for self::DropEdgeIndexReq
7720where
7721    P: ::fbthrift::ProtocolWriter,
7722{
7723    fn write(&self, p: &mut P) {
7724        p.write_struct_begin("DropEdgeIndexReq");
7725        p.write_field_begin("space_id", ::fbthrift::TType::I32, 1);
7726        ::fbthrift::Serialize::write(&self.space_id, p);
7727        p.write_field_end();
7728        p.write_field_begin("index_name", ::fbthrift::TType::String, 2);
7729        ::fbthrift::Serialize::write(&self.index_name, p);
7730        p.write_field_end();
7731        p.write_field_begin("if_exists", ::fbthrift::TType::Bool, 3);
7732        ::fbthrift::Serialize::write(&self.if_exists, p);
7733        p.write_field_end();
7734        p.write_field_stop();
7735        p.write_struct_end();
7736    }
7737}
7738
7739impl<P> ::fbthrift::Deserialize<P> for self::DropEdgeIndexReq
7740where
7741    P: ::fbthrift::ProtocolReader,
7742{
7743    fn read(p: &mut P) -> ::anyhow::Result<Self> {
7744        static FIELDS: &[::fbthrift::Field] = &[
7745            ::fbthrift::Field::new("if_exists", ::fbthrift::TType::Bool, 3),
7746            ::fbthrift::Field::new("index_name", ::fbthrift::TType::String, 2),
7747            ::fbthrift::Field::new("space_id", ::fbthrift::TType::I32, 1),
7748        ];
7749        let mut field_space_id = ::std::option::Option::None;
7750        let mut field_index_name = ::std::option::Option::None;
7751        let mut field_if_exists = ::std::option::Option::None;
7752        let _ = p.read_struct_begin(|_| ())?;
7753        loop {
7754            let (_, fty, fid) = p.read_field_begin(|_| (), FIELDS)?;
7755            match (fty, fid as ::std::primitive::i32) {
7756                (::fbthrift::TType::Stop, _) => break,
7757                (::fbthrift::TType::I32, 1) => field_space_id = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
7758                (::fbthrift::TType::String, 2) => field_index_name = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
7759                (::fbthrift::TType::Bool, 3) => field_if_exists = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
7760                (fty, _) => p.skip(fty)?,
7761            }
7762            p.read_field_end()?;
7763        }
7764        p.read_struct_end()?;
7765        ::std::result::Result::Ok(Self {
7766            space_id: field_space_id.unwrap_or_default(),
7767            index_name: field_index_name.unwrap_or_default(),
7768            if_exists: field_if_exists.unwrap_or_default(),
7769            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
7770        })
7771    }
7772}
7773
7774
7775#[allow(clippy::derivable_impls)]
7776impl ::std::default::Default for self::GetEdgeIndexReq {
7777    fn default() -> Self {
7778        Self {
7779            space_id: ::std::default::Default::default(),
7780            index_name: ::std::default::Default::default(),
7781            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
7782        }
7783    }
7784}
7785
7786impl ::std::fmt::Debug for self::GetEdgeIndexReq {
7787    fn fmt(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7788        formatter
7789            .debug_struct("GetEdgeIndexReq")
7790            .field("space_id", &self.space_id)
7791            .field("index_name", &self.index_name)
7792            .finish()
7793    }
7794}
7795
7796unsafe impl ::std::marker::Send for self::GetEdgeIndexReq {}
7797unsafe impl ::std::marker::Sync for self::GetEdgeIndexReq {}
7798
7799impl ::fbthrift::GetTType for self::GetEdgeIndexReq {
7800    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::Struct;
7801}
7802
7803impl<P> ::fbthrift::Serialize<P> for self::GetEdgeIndexReq
7804where
7805    P: ::fbthrift::ProtocolWriter,
7806{
7807    fn write(&self, p: &mut P) {
7808        p.write_struct_begin("GetEdgeIndexReq");
7809        p.write_field_begin("space_id", ::fbthrift::TType::I32, 1);
7810        ::fbthrift::Serialize::write(&self.space_id, p);
7811        p.write_field_end();
7812        p.write_field_begin("index_name", ::fbthrift::TType::String, 2);
7813        ::fbthrift::Serialize::write(&self.index_name, p);
7814        p.write_field_end();
7815        p.write_field_stop();
7816        p.write_struct_end();
7817    }
7818}
7819
7820impl<P> ::fbthrift::Deserialize<P> for self::GetEdgeIndexReq
7821where
7822    P: ::fbthrift::ProtocolReader,
7823{
7824    fn read(p: &mut P) -> ::anyhow::Result<Self> {
7825        static FIELDS: &[::fbthrift::Field] = &[
7826            ::fbthrift::Field::new("index_name", ::fbthrift::TType::String, 2),
7827            ::fbthrift::Field::new("space_id", ::fbthrift::TType::I32, 1),
7828        ];
7829        let mut field_space_id = ::std::option::Option::None;
7830        let mut field_index_name = ::std::option::Option::None;
7831        let _ = p.read_struct_begin(|_| ())?;
7832        loop {
7833            let (_, fty, fid) = p.read_field_begin(|_| (), FIELDS)?;
7834            match (fty, fid as ::std::primitive::i32) {
7835                (::fbthrift::TType::Stop, _) => break,
7836                (::fbthrift::TType::I32, 1) => field_space_id = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
7837                (::fbthrift::TType::String, 2) => field_index_name = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
7838                (fty, _) => p.skip(fty)?,
7839            }
7840            p.read_field_end()?;
7841        }
7842        p.read_struct_end()?;
7843        ::std::result::Result::Ok(Self {
7844            space_id: field_space_id.unwrap_or_default(),
7845            index_name: field_index_name.unwrap_or_default(),
7846            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
7847        })
7848    }
7849}
7850
7851
7852#[allow(clippy::derivable_impls)]
7853impl ::std::default::Default for self::GetEdgeIndexResp {
7854    fn default() -> Self {
7855        Self {
7856            code: ::std::default::Default::default(),
7857            leader: ::std::default::Default::default(),
7858            item: ::std::default::Default::default(),
7859            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
7860        }
7861    }
7862}
7863
7864impl ::std::fmt::Debug for self::GetEdgeIndexResp {
7865    fn fmt(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7866        formatter
7867            .debug_struct("GetEdgeIndexResp")
7868            .field("code", &self.code)
7869            .field("leader", &self.leader)
7870            .field("item", &self.item)
7871            .finish()
7872    }
7873}
7874
7875unsafe impl ::std::marker::Send for self::GetEdgeIndexResp {}
7876unsafe impl ::std::marker::Sync for self::GetEdgeIndexResp {}
7877
7878impl ::fbthrift::GetTType for self::GetEdgeIndexResp {
7879    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::Struct;
7880}
7881
7882impl<P> ::fbthrift::Serialize<P> for self::GetEdgeIndexResp
7883where
7884    P: ::fbthrift::ProtocolWriter,
7885{
7886    fn write(&self, p: &mut P) {
7887        p.write_struct_begin("GetEdgeIndexResp");
7888        p.write_field_begin("code", ::fbthrift::TType::I32, 1);
7889        ::fbthrift::Serialize::write(&self.code, p);
7890        p.write_field_end();
7891        p.write_field_begin("leader", ::fbthrift::TType::Struct, 2);
7892        ::fbthrift::Serialize::write(&self.leader, p);
7893        p.write_field_end();
7894        p.write_field_begin("item", ::fbthrift::TType::Struct, 3);
7895        ::fbthrift::Serialize::write(&self.item, p);
7896        p.write_field_end();
7897        p.write_field_stop();
7898        p.write_struct_end();
7899    }
7900}
7901
7902impl<P> ::fbthrift::Deserialize<P> for self::GetEdgeIndexResp
7903where
7904    P: ::fbthrift::ProtocolReader,
7905{
7906    fn read(p: &mut P) -> ::anyhow::Result<Self> {
7907        static FIELDS: &[::fbthrift::Field] = &[
7908            ::fbthrift::Field::new("code", ::fbthrift::TType::I32, 1),
7909            ::fbthrift::Field::new("item", ::fbthrift::TType::Struct, 3),
7910            ::fbthrift::Field::new("leader", ::fbthrift::TType::Struct, 2),
7911        ];
7912        let mut field_code = ::std::option::Option::None;
7913        let mut field_leader = ::std::option::Option::None;
7914        let mut field_item = ::std::option::Option::None;
7915        let _ = p.read_struct_begin(|_| ())?;
7916        loop {
7917            let (_, fty, fid) = p.read_field_begin(|_| (), FIELDS)?;
7918            match (fty, fid as ::std::primitive::i32) {
7919                (::fbthrift::TType::Stop, _) => break,
7920                (::fbthrift::TType::I32, 1) => field_code = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
7921                (::fbthrift::TType::Struct, 2) => field_leader = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
7922                (::fbthrift::TType::Struct, 3) => field_item = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
7923                (fty, _) => p.skip(fty)?,
7924            }
7925            p.read_field_end()?;
7926        }
7927        p.read_struct_end()?;
7928        ::std::result::Result::Ok(Self {
7929            code: field_code.unwrap_or_default(),
7930            leader: field_leader.unwrap_or_default(),
7931            item: field_item.unwrap_or_default(),
7932            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
7933        })
7934    }
7935}
7936
7937
7938#[allow(clippy::derivable_impls)]
7939impl ::std::default::Default for self::ListEdgeIndexesReq {
7940    fn default() -> Self {
7941        Self {
7942            space_id: ::std::default::Default::default(),
7943            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
7944        }
7945    }
7946}
7947
7948impl ::std::fmt::Debug for self::ListEdgeIndexesReq {
7949    fn fmt(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
7950        formatter
7951            .debug_struct("ListEdgeIndexesReq")
7952            .field("space_id", &self.space_id)
7953            .finish()
7954    }
7955}
7956
7957unsafe impl ::std::marker::Send for self::ListEdgeIndexesReq {}
7958unsafe impl ::std::marker::Sync for self::ListEdgeIndexesReq {}
7959
7960impl ::fbthrift::GetTType for self::ListEdgeIndexesReq {
7961    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::Struct;
7962}
7963
7964impl<P> ::fbthrift::Serialize<P> for self::ListEdgeIndexesReq
7965where
7966    P: ::fbthrift::ProtocolWriter,
7967{
7968    fn write(&self, p: &mut P) {
7969        p.write_struct_begin("ListEdgeIndexesReq");
7970        p.write_field_begin("space_id", ::fbthrift::TType::I32, 1);
7971        ::fbthrift::Serialize::write(&self.space_id, p);
7972        p.write_field_end();
7973        p.write_field_stop();
7974        p.write_struct_end();
7975    }
7976}
7977
7978impl<P> ::fbthrift::Deserialize<P> for self::ListEdgeIndexesReq
7979where
7980    P: ::fbthrift::ProtocolReader,
7981{
7982    fn read(p: &mut P) -> ::anyhow::Result<Self> {
7983        static FIELDS: &[::fbthrift::Field] = &[
7984            ::fbthrift::Field::new("space_id", ::fbthrift::TType::I32, 1),
7985        ];
7986        let mut field_space_id = ::std::option::Option::None;
7987        let _ = p.read_struct_begin(|_| ())?;
7988        loop {
7989            let (_, fty, fid) = p.read_field_begin(|_| (), FIELDS)?;
7990            match (fty, fid as ::std::primitive::i32) {
7991                (::fbthrift::TType::Stop, _) => break,
7992                (::fbthrift::TType::I32, 1) => field_space_id = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
7993                (fty, _) => p.skip(fty)?,
7994            }
7995            p.read_field_end()?;
7996        }
7997        p.read_struct_end()?;
7998        ::std::result::Result::Ok(Self {
7999            space_id: field_space_id.unwrap_or_default(),
8000            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
8001        })
8002    }
8003}
8004
8005
8006#[allow(clippy::derivable_impls)]
8007impl ::std::default::Default for self::ListEdgeIndexesResp {
8008    fn default() -> Self {
8009        Self {
8010            code: ::std::default::Default::default(),
8011            leader: ::std::default::Default::default(),
8012            items: ::std::default::Default::default(),
8013            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
8014        }
8015    }
8016}
8017
8018impl ::std::fmt::Debug for self::ListEdgeIndexesResp {
8019    fn fmt(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8020        formatter
8021            .debug_struct("ListEdgeIndexesResp")
8022            .field("code", &self.code)
8023            .field("leader", &self.leader)
8024            .field("items", &self.items)
8025            .finish()
8026    }
8027}
8028
8029unsafe impl ::std::marker::Send for self::ListEdgeIndexesResp {}
8030unsafe impl ::std::marker::Sync for self::ListEdgeIndexesResp {}
8031
8032impl ::fbthrift::GetTType for self::ListEdgeIndexesResp {
8033    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::Struct;
8034}
8035
8036impl<P> ::fbthrift::Serialize<P> for self::ListEdgeIndexesResp
8037where
8038    P: ::fbthrift::ProtocolWriter,
8039{
8040    fn write(&self, p: &mut P) {
8041        p.write_struct_begin("ListEdgeIndexesResp");
8042        p.write_field_begin("code", ::fbthrift::TType::I32, 1);
8043        ::fbthrift::Serialize::write(&self.code, p);
8044        p.write_field_end();
8045        p.write_field_begin("leader", ::fbthrift::TType::Struct, 2);
8046        ::fbthrift::Serialize::write(&self.leader, p);
8047        p.write_field_end();
8048        p.write_field_begin("items", ::fbthrift::TType::List, 3);
8049        ::fbthrift::Serialize::write(&self.items, p);
8050        p.write_field_end();
8051        p.write_field_stop();
8052        p.write_struct_end();
8053    }
8054}
8055
8056impl<P> ::fbthrift::Deserialize<P> for self::ListEdgeIndexesResp
8057where
8058    P: ::fbthrift::ProtocolReader,
8059{
8060    fn read(p: &mut P) -> ::anyhow::Result<Self> {
8061        static FIELDS: &[::fbthrift::Field] = &[
8062            ::fbthrift::Field::new("code", ::fbthrift::TType::I32, 1),
8063            ::fbthrift::Field::new("items", ::fbthrift::TType::List, 3),
8064            ::fbthrift::Field::new("leader", ::fbthrift::TType::Struct, 2),
8065        ];
8066        let mut field_code = ::std::option::Option::None;
8067        let mut field_leader = ::std::option::Option::None;
8068        let mut field_items = ::std::option::Option::None;
8069        let _ = p.read_struct_begin(|_| ())?;
8070        loop {
8071            let (_, fty, fid) = p.read_field_begin(|_| (), FIELDS)?;
8072            match (fty, fid as ::std::primitive::i32) {
8073                (::fbthrift::TType::Stop, _) => break,
8074                (::fbthrift::TType::I32, 1) => field_code = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
8075                (::fbthrift::TType::Struct, 2) => field_leader = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
8076                (::fbthrift::TType::List, 3) => field_items = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
8077                (fty, _) => p.skip(fty)?,
8078            }
8079            p.read_field_end()?;
8080        }
8081        p.read_struct_end()?;
8082        ::std::result::Result::Ok(Self {
8083            code: field_code.unwrap_or_default(),
8084            leader: field_leader.unwrap_or_default(),
8085            items: field_items.unwrap_or_default(),
8086            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
8087        })
8088    }
8089}
8090
8091
8092#[allow(clippy::derivable_impls)]
8093impl ::std::default::Default for self::RebuildIndexReq {
8094    fn default() -> Self {
8095        Self {
8096            space_id: ::std::default::Default::default(),
8097            index_name: ::std::default::Default::default(),
8098            is_offline: ::std::default::Default::default(),
8099            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
8100        }
8101    }
8102}
8103
8104impl ::std::fmt::Debug for self::RebuildIndexReq {
8105    fn fmt(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8106        formatter
8107            .debug_struct("RebuildIndexReq")
8108            .field("space_id", &self.space_id)
8109            .field("index_name", &self.index_name)
8110            .field("is_offline", &self.is_offline)
8111            .finish()
8112    }
8113}
8114
8115unsafe impl ::std::marker::Send for self::RebuildIndexReq {}
8116unsafe impl ::std::marker::Sync for self::RebuildIndexReq {}
8117
8118impl ::fbthrift::GetTType for self::RebuildIndexReq {
8119    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::Struct;
8120}
8121
8122impl<P> ::fbthrift::Serialize<P> for self::RebuildIndexReq
8123where
8124    P: ::fbthrift::ProtocolWriter,
8125{
8126    fn write(&self, p: &mut P) {
8127        p.write_struct_begin("RebuildIndexReq");
8128        p.write_field_begin("space_id", ::fbthrift::TType::I32, 1);
8129        ::fbthrift::Serialize::write(&self.space_id, p);
8130        p.write_field_end();
8131        p.write_field_begin("index_name", ::fbthrift::TType::String, 2);
8132        ::fbthrift::Serialize::write(&self.index_name, p);
8133        p.write_field_end();
8134        p.write_field_begin("is_offline", ::fbthrift::TType::Bool, 3);
8135        ::fbthrift::Serialize::write(&self.is_offline, p);
8136        p.write_field_end();
8137        p.write_field_stop();
8138        p.write_struct_end();
8139    }
8140}
8141
8142impl<P> ::fbthrift::Deserialize<P> for self::RebuildIndexReq
8143where
8144    P: ::fbthrift::ProtocolReader,
8145{
8146    fn read(p: &mut P) -> ::anyhow::Result<Self> {
8147        static FIELDS: &[::fbthrift::Field] = &[
8148            ::fbthrift::Field::new("index_name", ::fbthrift::TType::String, 2),
8149            ::fbthrift::Field::new("is_offline", ::fbthrift::TType::Bool, 3),
8150            ::fbthrift::Field::new("space_id", ::fbthrift::TType::I32, 1),
8151        ];
8152        let mut field_space_id = ::std::option::Option::None;
8153        let mut field_index_name = ::std::option::Option::None;
8154        let mut field_is_offline = ::std::option::Option::None;
8155        let _ = p.read_struct_begin(|_| ())?;
8156        loop {
8157            let (_, fty, fid) = p.read_field_begin(|_| (), FIELDS)?;
8158            match (fty, fid as ::std::primitive::i32) {
8159                (::fbthrift::TType::Stop, _) => break,
8160                (::fbthrift::TType::I32, 1) => field_space_id = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
8161                (::fbthrift::TType::String, 2) => field_index_name = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
8162                (::fbthrift::TType::Bool, 3) => field_is_offline = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
8163                (fty, _) => p.skip(fty)?,
8164            }
8165            p.read_field_end()?;
8166        }
8167        p.read_struct_end()?;
8168        ::std::result::Result::Ok(Self {
8169            space_id: field_space_id.unwrap_or_default(),
8170            index_name: field_index_name.unwrap_or_default(),
8171            is_offline: field_is_offline.unwrap_or_default(),
8172            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
8173        })
8174    }
8175}
8176
8177
8178#[allow(clippy::derivable_impls)]
8179impl ::std::default::Default for self::CreateUserReq {
8180    fn default() -> Self {
8181        Self {
8182            account: ::std::default::Default::default(),
8183            encoded_pwd: ::std::default::Default::default(),
8184            if_not_exists: ::std::default::Default::default(),
8185            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
8186        }
8187    }
8188}
8189
8190impl ::std::fmt::Debug for self::CreateUserReq {
8191    fn fmt(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8192        formatter
8193            .debug_struct("CreateUserReq")
8194            .field("account", &self.account)
8195            .field("encoded_pwd", &self.encoded_pwd)
8196            .field("if_not_exists", &self.if_not_exists)
8197            .finish()
8198    }
8199}
8200
8201unsafe impl ::std::marker::Send for self::CreateUserReq {}
8202unsafe impl ::std::marker::Sync for self::CreateUserReq {}
8203
8204impl ::fbthrift::GetTType for self::CreateUserReq {
8205    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::Struct;
8206}
8207
8208impl<P> ::fbthrift::Serialize<P> for self::CreateUserReq
8209where
8210    P: ::fbthrift::ProtocolWriter,
8211{
8212    fn write(&self, p: &mut P) {
8213        p.write_struct_begin("CreateUserReq");
8214        p.write_field_begin("account", ::fbthrift::TType::String, 1);
8215        ::fbthrift::Serialize::write(&self.account, p);
8216        p.write_field_end();
8217        p.write_field_begin("encoded_pwd", ::fbthrift::TType::String, 2);
8218        ::fbthrift::Serialize::write(&self.encoded_pwd, p);
8219        p.write_field_end();
8220        p.write_field_begin("if_not_exists", ::fbthrift::TType::Bool, 3);
8221        ::fbthrift::Serialize::write(&self.if_not_exists, p);
8222        p.write_field_end();
8223        p.write_field_stop();
8224        p.write_struct_end();
8225    }
8226}
8227
8228impl<P> ::fbthrift::Deserialize<P> for self::CreateUserReq
8229where
8230    P: ::fbthrift::ProtocolReader,
8231{
8232    fn read(p: &mut P) -> ::anyhow::Result<Self> {
8233        static FIELDS: &[::fbthrift::Field] = &[
8234            ::fbthrift::Field::new("account", ::fbthrift::TType::String, 1),
8235            ::fbthrift::Field::new("encoded_pwd", ::fbthrift::TType::String, 2),
8236            ::fbthrift::Field::new("if_not_exists", ::fbthrift::TType::Bool, 3),
8237        ];
8238        let mut field_account = ::std::option::Option::None;
8239        let mut field_encoded_pwd = ::std::option::Option::None;
8240        let mut field_if_not_exists = ::std::option::Option::None;
8241        let _ = p.read_struct_begin(|_| ())?;
8242        loop {
8243            let (_, fty, fid) = p.read_field_begin(|_| (), FIELDS)?;
8244            match (fty, fid as ::std::primitive::i32) {
8245                (::fbthrift::TType::Stop, _) => break,
8246                (::fbthrift::TType::String, 1) => field_account = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
8247                (::fbthrift::TType::String, 2) => field_encoded_pwd = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
8248                (::fbthrift::TType::Bool, 3) => field_if_not_exists = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
8249                (fty, _) => p.skip(fty)?,
8250            }
8251            p.read_field_end()?;
8252        }
8253        p.read_struct_end()?;
8254        ::std::result::Result::Ok(Self {
8255            account: field_account.unwrap_or_default(),
8256            encoded_pwd: field_encoded_pwd.unwrap_or_default(),
8257            if_not_exists: field_if_not_exists.unwrap_or_default(),
8258            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
8259        })
8260    }
8261}
8262
8263
8264#[allow(clippy::derivable_impls)]
8265impl ::std::default::Default for self::DropUserReq {
8266    fn default() -> Self {
8267        Self {
8268            account: ::std::default::Default::default(),
8269            if_exists: ::std::default::Default::default(),
8270            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
8271        }
8272    }
8273}
8274
8275impl ::std::fmt::Debug for self::DropUserReq {
8276    fn fmt(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8277        formatter
8278            .debug_struct("DropUserReq")
8279            .field("account", &self.account)
8280            .field("if_exists", &self.if_exists)
8281            .finish()
8282    }
8283}
8284
8285unsafe impl ::std::marker::Send for self::DropUserReq {}
8286unsafe impl ::std::marker::Sync for self::DropUserReq {}
8287
8288impl ::fbthrift::GetTType for self::DropUserReq {
8289    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::Struct;
8290}
8291
8292impl<P> ::fbthrift::Serialize<P> for self::DropUserReq
8293where
8294    P: ::fbthrift::ProtocolWriter,
8295{
8296    fn write(&self, p: &mut P) {
8297        p.write_struct_begin("DropUserReq");
8298        p.write_field_begin("account", ::fbthrift::TType::String, 1);
8299        ::fbthrift::Serialize::write(&self.account, p);
8300        p.write_field_end();
8301        p.write_field_begin("if_exists", ::fbthrift::TType::Bool, 2);
8302        ::fbthrift::Serialize::write(&self.if_exists, p);
8303        p.write_field_end();
8304        p.write_field_stop();
8305        p.write_struct_end();
8306    }
8307}
8308
8309impl<P> ::fbthrift::Deserialize<P> for self::DropUserReq
8310where
8311    P: ::fbthrift::ProtocolReader,
8312{
8313    fn read(p: &mut P) -> ::anyhow::Result<Self> {
8314        static FIELDS: &[::fbthrift::Field] = &[
8315            ::fbthrift::Field::new("account", ::fbthrift::TType::String, 1),
8316            ::fbthrift::Field::new("if_exists", ::fbthrift::TType::Bool, 2),
8317        ];
8318        let mut field_account = ::std::option::Option::None;
8319        let mut field_if_exists = ::std::option::Option::None;
8320        let _ = p.read_struct_begin(|_| ())?;
8321        loop {
8322            let (_, fty, fid) = p.read_field_begin(|_| (), FIELDS)?;
8323            match (fty, fid as ::std::primitive::i32) {
8324                (::fbthrift::TType::Stop, _) => break,
8325                (::fbthrift::TType::String, 1) => field_account = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
8326                (::fbthrift::TType::Bool, 2) => field_if_exists = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
8327                (fty, _) => p.skip(fty)?,
8328            }
8329            p.read_field_end()?;
8330        }
8331        p.read_struct_end()?;
8332        ::std::result::Result::Ok(Self {
8333            account: field_account.unwrap_or_default(),
8334            if_exists: field_if_exists.unwrap_or_default(),
8335            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
8336        })
8337    }
8338}
8339
8340
8341#[allow(clippy::derivable_impls)]
8342impl ::std::default::Default for self::AlterUserReq {
8343    fn default() -> Self {
8344        Self {
8345            account: ::std::default::Default::default(),
8346            encoded_pwd: ::std::default::Default::default(),
8347            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
8348        }
8349    }
8350}
8351
8352impl ::std::fmt::Debug for self::AlterUserReq {
8353    fn fmt(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8354        formatter
8355            .debug_struct("AlterUserReq")
8356            .field("account", &self.account)
8357            .field("encoded_pwd", &self.encoded_pwd)
8358            .finish()
8359    }
8360}
8361
8362unsafe impl ::std::marker::Send for self::AlterUserReq {}
8363unsafe impl ::std::marker::Sync for self::AlterUserReq {}
8364
8365impl ::fbthrift::GetTType for self::AlterUserReq {
8366    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::Struct;
8367}
8368
8369impl<P> ::fbthrift::Serialize<P> for self::AlterUserReq
8370where
8371    P: ::fbthrift::ProtocolWriter,
8372{
8373    fn write(&self, p: &mut P) {
8374        p.write_struct_begin("AlterUserReq");
8375        p.write_field_begin("account", ::fbthrift::TType::String, 1);
8376        ::fbthrift::Serialize::write(&self.account, p);
8377        p.write_field_end();
8378        p.write_field_begin("encoded_pwd", ::fbthrift::TType::String, 2);
8379        ::fbthrift::Serialize::write(&self.encoded_pwd, p);
8380        p.write_field_end();
8381        p.write_field_stop();
8382        p.write_struct_end();
8383    }
8384}
8385
8386impl<P> ::fbthrift::Deserialize<P> for self::AlterUserReq
8387where
8388    P: ::fbthrift::ProtocolReader,
8389{
8390    fn read(p: &mut P) -> ::anyhow::Result<Self> {
8391        static FIELDS: &[::fbthrift::Field] = &[
8392            ::fbthrift::Field::new("account", ::fbthrift::TType::String, 1),
8393            ::fbthrift::Field::new("encoded_pwd", ::fbthrift::TType::String, 2),
8394        ];
8395        let mut field_account = ::std::option::Option::None;
8396        let mut field_encoded_pwd = ::std::option::Option::None;
8397        let _ = p.read_struct_begin(|_| ())?;
8398        loop {
8399            let (_, fty, fid) = p.read_field_begin(|_| (), FIELDS)?;
8400            match (fty, fid as ::std::primitive::i32) {
8401                (::fbthrift::TType::Stop, _) => break,
8402                (::fbthrift::TType::String, 1) => field_account = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
8403                (::fbthrift::TType::String, 2) => field_encoded_pwd = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
8404                (fty, _) => p.skip(fty)?,
8405            }
8406            p.read_field_end()?;
8407        }
8408        p.read_struct_end()?;
8409        ::std::result::Result::Ok(Self {
8410            account: field_account.unwrap_or_default(),
8411            encoded_pwd: field_encoded_pwd.unwrap_or_default(),
8412            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
8413        })
8414    }
8415}
8416
8417
8418#[allow(clippy::derivable_impls)]
8419impl ::std::default::Default for self::GrantRoleReq {
8420    fn default() -> Self {
8421        Self {
8422            role_item: ::std::default::Default::default(),
8423            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
8424        }
8425    }
8426}
8427
8428impl ::std::fmt::Debug for self::GrantRoleReq {
8429    fn fmt(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8430        formatter
8431            .debug_struct("GrantRoleReq")
8432            .field("role_item", &self.role_item)
8433            .finish()
8434    }
8435}
8436
8437unsafe impl ::std::marker::Send for self::GrantRoleReq {}
8438unsafe impl ::std::marker::Sync for self::GrantRoleReq {}
8439
8440impl ::fbthrift::GetTType for self::GrantRoleReq {
8441    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::Struct;
8442}
8443
8444impl<P> ::fbthrift::Serialize<P> for self::GrantRoleReq
8445where
8446    P: ::fbthrift::ProtocolWriter,
8447{
8448    fn write(&self, p: &mut P) {
8449        p.write_struct_begin("GrantRoleReq");
8450        p.write_field_begin("role_item", ::fbthrift::TType::Struct, 1);
8451        ::fbthrift::Serialize::write(&self.role_item, p);
8452        p.write_field_end();
8453        p.write_field_stop();
8454        p.write_struct_end();
8455    }
8456}
8457
8458impl<P> ::fbthrift::Deserialize<P> for self::GrantRoleReq
8459where
8460    P: ::fbthrift::ProtocolReader,
8461{
8462    fn read(p: &mut P) -> ::anyhow::Result<Self> {
8463        static FIELDS: &[::fbthrift::Field] = &[
8464            ::fbthrift::Field::new("role_item", ::fbthrift::TType::Struct, 1),
8465        ];
8466        let mut field_role_item = ::std::option::Option::None;
8467        let _ = p.read_struct_begin(|_| ())?;
8468        loop {
8469            let (_, fty, fid) = p.read_field_begin(|_| (), FIELDS)?;
8470            match (fty, fid as ::std::primitive::i32) {
8471                (::fbthrift::TType::Stop, _) => break,
8472                (::fbthrift::TType::Struct, 1) => field_role_item = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
8473                (fty, _) => p.skip(fty)?,
8474            }
8475            p.read_field_end()?;
8476        }
8477        p.read_struct_end()?;
8478        ::std::result::Result::Ok(Self {
8479            role_item: field_role_item.unwrap_or_default(),
8480            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
8481        })
8482    }
8483}
8484
8485
8486#[allow(clippy::derivable_impls)]
8487impl ::std::default::Default for self::RevokeRoleReq {
8488    fn default() -> Self {
8489        Self {
8490            role_item: ::std::default::Default::default(),
8491            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
8492        }
8493    }
8494}
8495
8496impl ::std::fmt::Debug for self::RevokeRoleReq {
8497    fn fmt(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8498        formatter
8499            .debug_struct("RevokeRoleReq")
8500            .field("role_item", &self.role_item)
8501            .finish()
8502    }
8503}
8504
8505unsafe impl ::std::marker::Send for self::RevokeRoleReq {}
8506unsafe impl ::std::marker::Sync for self::RevokeRoleReq {}
8507
8508impl ::fbthrift::GetTType for self::RevokeRoleReq {
8509    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::Struct;
8510}
8511
8512impl<P> ::fbthrift::Serialize<P> for self::RevokeRoleReq
8513where
8514    P: ::fbthrift::ProtocolWriter,
8515{
8516    fn write(&self, p: &mut P) {
8517        p.write_struct_begin("RevokeRoleReq");
8518        p.write_field_begin("role_item", ::fbthrift::TType::Struct, 1);
8519        ::fbthrift::Serialize::write(&self.role_item, p);
8520        p.write_field_end();
8521        p.write_field_stop();
8522        p.write_struct_end();
8523    }
8524}
8525
8526impl<P> ::fbthrift::Deserialize<P> for self::RevokeRoleReq
8527where
8528    P: ::fbthrift::ProtocolReader,
8529{
8530    fn read(p: &mut P) -> ::anyhow::Result<Self> {
8531        static FIELDS: &[::fbthrift::Field] = &[
8532            ::fbthrift::Field::new("role_item", ::fbthrift::TType::Struct, 1),
8533        ];
8534        let mut field_role_item = ::std::option::Option::None;
8535        let _ = p.read_struct_begin(|_| ())?;
8536        loop {
8537            let (_, fty, fid) = p.read_field_begin(|_| (), FIELDS)?;
8538            match (fty, fid as ::std::primitive::i32) {
8539                (::fbthrift::TType::Stop, _) => break,
8540                (::fbthrift::TType::Struct, 1) => field_role_item = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
8541                (fty, _) => p.skip(fty)?,
8542            }
8543            p.read_field_end()?;
8544        }
8545        p.read_struct_end()?;
8546        ::std::result::Result::Ok(Self {
8547            role_item: field_role_item.unwrap_or_default(),
8548            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
8549        })
8550    }
8551}
8552
8553
8554#[allow(clippy::derivable_impls)]
8555impl ::std::default::Default for self::ListUsersReq {
8556    fn default() -> Self {
8557        Self {
8558            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
8559        }
8560    }
8561}
8562
8563impl ::std::fmt::Debug for self::ListUsersReq {
8564    fn fmt(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8565        formatter
8566            .debug_struct("ListUsersReq")
8567            .finish()
8568    }
8569}
8570
8571unsafe impl ::std::marker::Send for self::ListUsersReq {}
8572unsafe impl ::std::marker::Sync for self::ListUsersReq {}
8573
8574impl ::fbthrift::GetTType for self::ListUsersReq {
8575    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::Struct;
8576}
8577
8578impl<P> ::fbthrift::Serialize<P> for self::ListUsersReq
8579where
8580    P: ::fbthrift::ProtocolWriter,
8581{
8582    fn write(&self, p: &mut P) {
8583        p.write_struct_begin("ListUsersReq");
8584        p.write_field_stop();
8585        p.write_struct_end();
8586    }
8587}
8588
8589impl<P> ::fbthrift::Deserialize<P> for self::ListUsersReq
8590where
8591    P: ::fbthrift::ProtocolReader,
8592{
8593    fn read(p: &mut P) -> ::anyhow::Result<Self> {
8594        static FIELDS: &[::fbthrift::Field] = &[
8595        ];
8596        let _ = p.read_struct_begin(|_| ())?;
8597        loop {
8598            let (_, fty, fid) = p.read_field_begin(|_| (), FIELDS)?;
8599            match (fty, fid as ::std::primitive::i32) {
8600                (::fbthrift::TType::Stop, _) => break,
8601                (fty, _) => p.skip(fty)?,
8602            }
8603            p.read_field_end()?;
8604        }
8605        p.read_struct_end()?;
8606        ::std::result::Result::Ok(Self {
8607            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
8608        })
8609    }
8610}
8611
8612
8613#[allow(clippy::derivable_impls)]
8614impl ::std::default::Default for self::ListUsersResp {
8615    fn default() -> Self {
8616        Self {
8617            code: ::std::default::Default::default(),
8618            leader: ::std::default::Default::default(),
8619            users: ::std::default::Default::default(),
8620            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
8621        }
8622    }
8623}
8624
8625impl ::std::fmt::Debug for self::ListUsersResp {
8626    fn fmt(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8627        formatter
8628            .debug_struct("ListUsersResp")
8629            .field("code", &self.code)
8630            .field("leader", &self.leader)
8631            .field("users", &self.users)
8632            .finish()
8633    }
8634}
8635
8636unsafe impl ::std::marker::Send for self::ListUsersResp {}
8637unsafe impl ::std::marker::Sync for self::ListUsersResp {}
8638
8639impl ::fbthrift::GetTType for self::ListUsersResp {
8640    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::Struct;
8641}
8642
8643impl<P> ::fbthrift::Serialize<P> for self::ListUsersResp
8644where
8645    P: ::fbthrift::ProtocolWriter,
8646{
8647    fn write(&self, p: &mut P) {
8648        p.write_struct_begin("ListUsersResp");
8649        p.write_field_begin("code", ::fbthrift::TType::I32, 1);
8650        ::fbthrift::Serialize::write(&self.code, p);
8651        p.write_field_end();
8652        p.write_field_begin("leader", ::fbthrift::TType::Struct, 2);
8653        ::fbthrift::Serialize::write(&self.leader, p);
8654        p.write_field_end();
8655        p.write_field_begin("users", ::fbthrift::TType::Map, 3);
8656        ::fbthrift::Serialize::write(&self.users, p);
8657        p.write_field_end();
8658        p.write_field_stop();
8659        p.write_struct_end();
8660    }
8661}
8662
8663impl<P> ::fbthrift::Deserialize<P> for self::ListUsersResp
8664where
8665    P: ::fbthrift::ProtocolReader,
8666{
8667    fn read(p: &mut P) -> ::anyhow::Result<Self> {
8668        static FIELDS: &[::fbthrift::Field] = &[
8669            ::fbthrift::Field::new("code", ::fbthrift::TType::I32, 1),
8670            ::fbthrift::Field::new("leader", ::fbthrift::TType::Struct, 2),
8671            ::fbthrift::Field::new("users", ::fbthrift::TType::Map, 3),
8672        ];
8673        let mut field_code = ::std::option::Option::None;
8674        let mut field_leader = ::std::option::Option::None;
8675        let mut field_users = ::std::option::Option::None;
8676        let _ = p.read_struct_begin(|_| ())?;
8677        loop {
8678            let (_, fty, fid) = p.read_field_begin(|_| (), FIELDS)?;
8679            match (fty, fid as ::std::primitive::i32) {
8680                (::fbthrift::TType::Stop, _) => break,
8681                (::fbthrift::TType::I32, 1) => field_code = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
8682                (::fbthrift::TType::Struct, 2) => field_leader = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
8683                (::fbthrift::TType::Map, 3) => field_users = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
8684                (fty, _) => p.skip(fty)?,
8685            }
8686            p.read_field_end()?;
8687        }
8688        p.read_struct_end()?;
8689        ::std::result::Result::Ok(Self {
8690            code: field_code.unwrap_or_default(),
8691            leader: field_leader.unwrap_or_default(),
8692            users: field_users.unwrap_or_default(),
8693            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
8694        })
8695    }
8696}
8697
8698
8699#[allow(clippy::derivable_impls)]
8700impl ::std::default::Default for self::ListRolesReq {
8701    fn default() -> Self {
8702        Self {
8703            space_id: ::std::default::Default::default(),
8704            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
8705        }
8706    }
8707}
8708
8709impl ::std::fmt::Debug for self::ListRolesReq {
8710    fn fmt(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8711        formatter
8712            .debug_struct("ListRolesReq")
8713            .field("space_id", &self.space_id)
8714            .finish()
8715    }
8716}
8717
8718unsafe impl ::std::marker::Send for self::ListRolesReq {}
8719unsafe impl ::std::marker::Sync for self::ListRolesReq {}
8720
8721impl ::fbthrift::GetTType for self::ListRolesReq {
8722    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::Struct;
8723}
8724
8725impl<P> ::fbthrift::Serialize<P> for self::ListRolesReq
8726where
8727    P: ::fbthrift::ProtocolWriter,
8728{
8729    fn write(&self, p: &mut P) {
8730        p.write_struct_begin("ListRolesReq");
8731        p.write_field_begin("space_id", ::fbthrift::TType::I32, 1);
8732        ::fbthrift::Serialize::write(&self.space_id, p);
8733        p.write_field_end();
8734        p.write_field_stop();
8735        p.write_struct_end();
8736    }
8737}
8738
8739impl<P> ::fbthrift::Deserialize<P> for self::ListRolesReq
8740where
8741    P: ::fbthrift::ProtocolReader,
8742{
8743    fn read(p: &mut P) -> ::anyhow::Result<Self> {
8744        static FIELDS: &[::fbthrift::Field] = &[
8745            ::fbthrift::Field::new("space_id", ::fbthrift::TType::I32, 1),
8746        ];
8747        let mut field_space_id = ::std::option::Option::None;
8748        let _ = p.read_struct_begin(|_| ())?;
8749        loop {
8750            let (_, fty, fid) = p.read_field_begin(|_| (), FIELDS)?;
8751            match (fty, fid as ::std::primitive::i32) {
8752                (::fbthrift::TType::Stop, _) => break,
8753                (::fbthrift::TType::I32, 1) => field_space_id = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
8754                (fty, _) => p.skip(fty)?,
8755            }
8756            p.read_field_end()?;
8757        }
8758        p.read_struct_end()?;
8759        ::std::result::Result::Ok(Self {
8760            space_id: field_space_id.unwrap_or_default(),
8761            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
8762        })
8763    }
8764}
8765
8766
8767#[allow(clippy::derivable_impls)]
8768impl ::std::default::Default for self::GetUserRolesReq {
8769    fn default() -> Self {
8770        Self {
8771            account: ::std::default::Default::default(),
8772            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
8773        }
8774    }
8775}
8776
8777impl ::std::fmt::Debug for self::GetUserRolesReq {
8778    fn fmt(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8779        formatter
8780            .debug_struct("GetUserRolesReq")
8781            .field("account", &self.account)
8782            .finish()
8783    }
8784}
8785
8786unsafe impl ::std::marker::Send for self::GetUserRolesReq {}
8787unsafe impl ::std::marker::Sync for self::GetUserRolesReq {}
8788
8789impl ::fbthrift::GetTType for self::GetUserRolesReq {
8790    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::Struct;
8791}
8792
8793impl<P> ::fbthrift::Serialize<P> for self::GetUserRolesReq
8794where
8795    P: ::fbthrift::ProtocolWriter,
8796{
8797    fn write(&self, p: &mut P) {
8798        p.write_struct_begin("GetUserRolesReq");
8799        p.write_field_begin("account", ::fbthrift::TType::String, 1);
8800        ::fbthrift::Serialize::write(&self.account, p);
8801        p.write_field_end();
8802        p.write_field_stop();
8803        p.write_struct_end();
8804    }
8805}
8806
8807impl<P> ::fbthrift::Deserialize<P> for self::GetUserRolesReq
8808where
8809    P: ::fbthrift::ProtocolReader,
8810{
8811    fn read(p: &mut P) -> ::anyhow::Result<Self> {
8812        static FIELDS: &[::fbthrift::Field] = &[
8813            ::fbthrift::Field::new("account", ::fbthrift::TType::String, 1),
8814        ];
8815        let mut field_account = ::std::option::Option::None;
8816        let _ = p.read_struct_begin(|_| ())?;
8817        loop {
8818            let (_, fty, fid) = p.read_field_begin(|_| (), FIELDS)?;
8819            match (fty, fid as ::std::primitive::i32) {
8820                (::fbthrift::TType::Stop, _) => break,
8821                (::fbthrift::TType::String, 1) => field_account = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
8822                (fty, _) => p.skip(fty)?,
8823            }
8824            p.read_field_end()?;
8825        }
8826        p.read_struct_end()?;
8827        ::std::result::Result::Ok(Self {
8828            account: field_account.unwrap_or_default(),
8829            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
8830        })
8831    }
8832}
8833
8834
8835#[allow(clippy::derivable_impls)]
8836impl ::std::default::Default for self::ListRolesResp {
8837    fn default() -> Self {
8838        Self {
8839            code: ::std::default::Default::default(),
8840            leader: ::std::default::Default::default(),
8841            roles: ::std::default::Default::default(),
8842            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
8843        }
8844    }
8845}
8846
8847impl ::std::fmt::Debug for self::ListRolesResp {
8848    fn fmt(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8849        formatter
8850            .debug_struct("ListRolesResp")
8851            .field("code", &self.code)
8852            .field("leader", &self.leader)
8853            .field("roles", &self.roles)
8854            .finish()
8855    }
8856}
8857
8858unsafe impl ::std::marker::Send for self::ListRolesResp {}
8859unsafe impl ::std::marker::Sync for self::ListRolesResp {}
8860
8861impl ::fbthrift::GetTType for self::ListRolesResp {
8862    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::Struct;
8863}
8864
8865impl<P> ::fbthrift::Serialize<P> for self::ListRolesResp
8866where
8867    P: ::fbthrift::ProtocolWriter,
8868{
8869    fn write(&self, p: &mut P) {
8870        p.write_struct_begin("ListRolesResp");
8871        p.write_field_begin("code", ::fbthrift::TType::I32, 1);
8872        ::fbthrift::Serialize::write(&self.code, p);
8873        p.write_field_end();
8874        p.write_field_begin("leader", ::fbthrift::TType::Struct, 2);
8875        ::fbthrift::Serialize::write(&self.leader, p);
8876        p.write_field_end();
8877        p.write_field_begin("roles", ::fbthrift::TType::List, 3);
8878        ::fbthrift::Serialize::write(&self.roles, p);
8879        p.write_field_end();
8880        p.write_field_stop();
8881        p.write_struct_end();
8882    }
8883}
8884
8885impl<P> ::fbthrift::Deserialize<P> for self::ListRolesResp
8886where
8887    P: ::fbthrift::ProtocolReader,
8888{
8889    fn read(p: &mut P) -> ::anyhow::Result<Self> {
8890        static FIELDS: &[::fbthrift::Field] = &[
8891            ::fbthrift::Field::new("code", ::fbthrift::TType::I32, 1),
8892            ::fbthrift::Field::new("leader", ::fbthrift::TType::Struct, 2),
8893            ::fbthrift::Field::new("roles", ::fbthrift::TType::List, 3),
8894        ];
8895        let mut field_code = ::std::option::Option::None;
8896        let mut field_leader = ::std::option::Option::None;
8897        let mut field_roles = ::std::option::Option::None;
8898        let _ = p.read_struct_begin(|_| ())?;
8899        loop {
8900            let (_, fty, fid) = p.read_field_begin(|_| (), FIELDS)?;
8901            match (fty, fid as ::std::primitive::i32) {
8902                (::fbthrift::TType::Stop, _) => break,
8903                (::fbthrift::TType::I32, 1) => field_code = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
8904                (::fbthrift::TType::Struct, 2) => field_leader = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
8905                (::fbthrift::TType::List, 3) => field_roles = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
8906                (fty, _) => p.skip(fty)?,
8907            }
8908            p.read_field_end()?;
8909        }
8910        p.read_struct_end()?;
8911        ::std::result::Result::Ok(Self {
8912            code: field_code.unwrap_or_default(),
8913            leader: field_leader.unwrap_or_default(),
8914            roles: field_roles.unwrap_or_default(),
8915            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
8916        })
8917    }
8918}
8919
8920
8921#[allow(clippy::derivable_impls)]
8922impl ::std::default::Default for self::ChangePasswordReq {
8923    fn default() -> Self {
8924        Self {
8925            account: ::std::default::Default::default(),
8926            new_encoded_pwd: ::std::default::Default::default(),
8927            old_encoded_pwd: ::std::default::Default::default(),
8928            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
8929        }
8930    }
8931}
8932
8933impl ::std::fmt::Debug for self::ChangePasswordReq {
8934    fn fmt(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
8935        formatter
8936            .debug_struct("ChangePasswordReq")
8937            .field("account", &self.account)
8938            .field("new_encoded_pwd", &self.new_encoded_pwd)
8939            .field("old_encoded_pwd", &self.old_encoded_pwd)
8940            .finish()
8941    }
8942}
8943
8944unsafe impl ::std::marker::Send for self::ChangePasswordReq {}
8945unsafe impl ::std::marker::Sync for self::ChangePasswordReq {}
8946
8947impl ::fbthrift::GetTType for self::ChangePasswordReq {
8948    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::Struct;
8949}
8950
8951impl<P> ::fbthrift::Serialize<P> for self::ChangePasswordReq
8952where
8953    P: ::fbthrift::ProtocolWriter,
8954{
8955    fn write(&self, p: &mut P) {
8956        p.write_struct_begin("ChangePasswordReq");
8957        p.write_field_begin("account", ::fbthrift::TType::String, 1);
8958        ::fbthrift::Serialize::write(&self.account, p);
8959        p.write_field_end();
8960        p.write_field_begin("new_encoded_pwd", ::fbthrift::TType::String, 2);
8961        ::fbthrift::Serialize::write(&self.new_encoded_pwd, p);
8962        p.write_field_end();
8963        p.write_field_begin("old_encoded_pwd", ::fbthrift::TType::String, 3);
8964        ::fbthrift::Serialize::write(&self.old_encoded_pwd, p);
8965        p.write_field_end();
8966        p.write_field_stop();
8967        p.write_struct_end();
8968    }
8969}
8970
8971impl<P> ::fbthrift::Deserialize<P> for self::ChangePasswordReq
8972where
8973    P: ::fbthrift::ProtocolReader,
8974{
8975    fn read(p: &mut P) -> ::anyhow::Result<Self> {
8976        static FIELDS: &[::fbthrift::Field] = &[
8977            ::fbthrift::Field::new("account", ::fbthrift::TType::String, 1),
8978            ::fbthrift::Field::new("new_encoded_pwd", ::fbthrift::TType::String, 2),
8979            ::fbthrift::Field::new("old_encoded_pwd", ::fbthrift::TType::String, 3),
8980        ];
8981        let mut field_account = ::std::option::Option::None;
8982        let mut field_new_encoded_pwd = ::std::option::Option::None;
8983        let mut field_old_encoded_pwd = ::std::option::Option::None;
8984        let _ = p.read_struct_begin(|_| ())?;
8985        loop {
8986            let (_, fty, fid) = p.read_field_begin(|_| (), FIELDS)?;
8987            match (fty, fid as ::std::primitive::i32) {
8988                (::fbthrift::TType::Stop, _) => break,
8989                (::fbthrift::TType::String, 1) => field_account = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
8990                (::fbthrift::TType::String, 2) => field_new_encoded_pwd = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
8991                (::fbthrift::TType::String, 3) => field_old_encoded_pwd = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
8992                (fty, _) => p.skip(fty)?,
8993            }
8994            p.read_field_end()?;
8995        }
8996        p.read_struct_end()?;
8997        ::std::result::Result::Ok(Self {
8998            account: field_account.unwrap_or_default(),
8999            new_encoded_pwd: field_new_encoded_pwd.unwrap_or_default(),
9000            old_encoded_pwd: field_old_encoded_pwd.unwrap_or_default(),
9001            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
9002        })
9003    }
9004}
9005
9006
9007#[allow(clippy::derivable_impls)]
9008impl ::std::default::Default for self::BalanceReq {
9009    fn default() -> Self {
9010        Self {
9011            space_id: ::std::option::Option::None,
9012            id: ::std::option::Option::None,
9013            host_del: ::std::option::Option::None,
9014            stop: ::std::option::Option::None,
9015            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
9016        }
9017    }
9018}
9019
9020impl ::std::fmt::Debug for self::BalanceReq {
9021    fn fmt(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
9022        formatter
9023            .debug_struct("BalanceReq")
9024            .field("space_id", &self.space_id)
9025            .field("id", &self.id)
9026            .field("host_del", &self.host_del)
9027            .field("stop", &self.stop)
9028            .finish()
9029    }
9030}
9031
9032unsafe impl ::std::marker::Send for self::BalanceReq {}
9033unsafe impl ::std::marker::Sync for self::BalanceReq {}
9034
9035impl ::fbthrift::GetTType for self::BalanceReq {
9036    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::Struct;
9037}
9038
9039impl<P> ::fbthrift::Serialize<P> for self::BalanceReq
9040where
9041    P: ::fbthrift::ProtocolWriter,
9042{
9043    fn write(&self, p: &mut P) {
9044        p.write_struct_begin("BalanceReq");
9045        if let ::std::option::Option::Some(some) = &self.space_id {
9046            p.write_field_begin("space_id", ::fbthrift::TType::I32, 1);
9047            ::fbthrift::Serialize::write(some, p);
9048            p.write_field_end();
9049        }
9050        if let ::std::option::Option::Some(some) = &self.id {
9051            p.write_field_begin("id", ::fbthrift::TType::I64, 2);
9052            ::fbthrift::Serialize::write(some, p);
9053            p.write_field_end();
9054        }
9055        if let ::std::option::Option::Some(some) = &self.host_del {
9056            p.write_field_begin("host_del", ::fbthrift::TType::List, 3);
9057            ::fbthrift::Serialize::write(some, p);
9058            p.write_field_end();
9059        }
9060        if let ::std::option::Option::Some(some) = &self.stop {
9061            p.write_field_begin("stop", ::fbthrift::TType::Bool, 4);
9062            ::fbthrift::Serialize::write(some, p);
9063            p.write_field_end();
9064        }
9065        p.write_field_stop();
9066        p.write_struct_end();
9067    }
9068}
9069
9070impl<P> ::fbthrift::Deserialize<P> for self::BalanceReq
9071where
9072    P: ::fbthrift::ProtocolReader,
9073{
9074    fn read(p: &mut P) -> ::anyhow::Result<Self> {
9075        static FIELDS: &[::fbthrift::Field] = &[
9076            ::fbthrift::Field::new("host_del", ::fbthrift::TType::List, 3),
9077            ::fbthrift::Field::new("id", ::fbthrift::TType::I64, 2),
9078            ::fbthrift::Field::new("space_id", ::fbthrift::TType::I32, 1),
9079            ::fbthrift::Field::new("stop", ::fbthrift::TType::Bool, 4),
9080        ];
9081        let mut field_space_id = ::std::option::Option::None;
9082        let mut field_id = ::std::option::Option::None;
9083        let mut field_host_del = ::std::option::Option::None;
9084        let mut field_stop = ::std::option::Option::None;
9085        let _ = p.read_struct_begin(|_| ())?;
9086        loop {
9087            let (_, fty, fid) = p.read_field_begin(|_| (), FIELDS)?;
9088            match (fty, fid as ::std::primitive::i32) {
9089                (::fbthrift::TType::Stop, _) => break,
9090                (::fbthrift::TType::I32, 1) => field_space_id = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
9091                (::fbthrift::TType::I64, 2) => field_id = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
9092                (::fbthrift::TType::List, 3) => field_host_del = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
9093                (::fbthrift::TType::Bool, 4) => field_stop = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
9094                (fty, _) => p.skip(fty)?,
9095            }
9096            p.read_field_end()?;
9097        }
9098        p.read_struct_end()?;
9099        ::std::result::Result::Ok(Self {
9100            space_id: field_space_id,
9101            id: field_id,
9102            host_del: field_host_del,
9103            stop: field_stop,
9104            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
9105        })
9106    }
9107}
9108
9109
9110#[allow(clippy::derivable_impls)]
9111impl ::std::default::Default for self::BalanceTask {
9112    fn default() -> Self {
9113        Self {
9114            id: ::std::default::Default::default(),
9115            result: ::std::default::Default::default(),
9116            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
9117        }
9118    }
9119}
9120
9121impl ::std::fmt::Debug for self::BalanceTask {
9122    fn fmt(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
9123        formatter
9124            .debug_struct("BalanceTask")
9125            .field("id", &self.id)
9126            .field("result", &self.result)
9127            .finish()
9128    }
9129}
9130
9131unsafe impl ::std::marker::Send for self::BalanceTask {}
9132unsafe impl ::std::marker::Sync for self::BalanceTask {}
9133
9134impl ::fbthrift::GetTType for self::BalanceTask {
9135    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::Struct;
9136}
9137
9138impl<P> ::fbthrift::Serialize<P> for self::BalanceTask
9139where
9140    P: ::fbthrift::ProtocolWriter,
9141{
9142    fn write(&self, p: &mut P) {
9143        p.write_struct_begin("BalanceTask");
9144        p.write_field_begin("id", ::fbthrift::TType::String, 1);
9145        ::fbthrift::Serialize::write(&self.id, p);
9146        p.write_field_end();
9147        p.write_field_begin("result", ::fbthrift::TType::I32, 2);
9148        ::fbthrift::Serialize::write(&self.result, p);
9149        p.write_field_end();
9150        p.write_field_stop();
9151        p.write_struct_end();
9152    }
9153}
9154
9155impl<P> ::fbthrift::Deserialize<P> for self::BalanceTask
9156where
9157    P: ::fbthrift::ProtocolReader,
9158{
9159    fn read(p: &mut P) -> ::anyhow::Result<Self> {
9160        static FIELDS: &[::fbthrift::Field] = &[
9161            ::fbthrift::Field::new("id", ::fbthrift::TType::String, 1),
9162            ::fbthrift::Field::new("result", ::fbthrift::TType::I32, 2),
9163        ];
9164        let mut field_id = ::std::option::Option::None;
9165        let mut field_result = ::std::option::Option::None;
9166        let _ = p.read_struct_begin(|_| ())?;
9167        loop {
9168            let (_, fty, fid) = p.read_field_begin(|_| (), FIELDS)?;
9169            match (fty, fid as ::std::primitive::i32) {
9170                (::fbthrift::TType::Stop, _) => break,
9171                (::fbthrift::TType::String, 1) => field_id = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
9172                (::fbthrift::TType::I32, 2) => field_result = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
9173                (fty, _) => p.skip(fty)?,
9174            }
9175            p.read_field_end()?;
9176        }
9177        p.read_struct_end()?;
9178        ::std::result::Result::Ok(Self {
9179            id: field_id.unwrap_or_default(),
9180            result: field_result.unwrap_or_default(),
9181            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
9182        })
9183    }
9184}
9185
9186
9187#[allow(clippy::derivable_impls)]
9188impl ::std::default::Default for self::BalanceResp {
9189    fn default() -> Self {
9190        Self {
9191            code: ::std::default::Default::default(),
9192            id: ::std::default::Default::default(),
9193            leader: ::std::default::Default::default(),
9194            tasks: ::std::default::Default::default(),
9195            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
9196        }
9197    }
9198}
9199
9200impl ::std::fmt::Debug for self::BalanceResp {
9201    fn fmt(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
9202        formatter
9203            .debug_struct("BalanceResp")
9204            .field("code", &self.code)
9205            .field("id", &self.id)
9206            .field("leader", &self.leader)
9207            .field("tasks", &self.tasks)
9208            .finish()
9209    }
9210}
9211
9212unsafe impl ::std::marker::Send for self::BalanceResp {}
9213unsafe impl ::std::marker::Sync for self::BalanceResp {}
9214
9215impl ::fbthrift::GetTType for self::BalanceResp {
9216    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::Struct;
9217}
9218
9219impl<P> ::fbthrift::Serialize<P> for self::BalanceResp
9220where
9221    P: ::fbthrift::ProtocolWriter,
9222{
9223    fn write(&self, p: &mut P) {
9224        p.write_struct_begin("BalanceResp");
9225        p.write_field_begin("code", ::fbthrift::TType::I32, 1);
9226        ::fbthrift::Serialize::write(&self.code, p);
9227        p.write_field_end();
9228        p.write_field_begin("id", ::fbthrift::TType::I64, 2);
9229        ::fbthrift::Serialize::write(&self.id, p);
9230        p.write_field_end();
9231        p.write_field_begin("leader", ::fbthrift::TType::Struct, 3);
9232        ::fbthrift::Serialize::write(&self.leader, p);
9233        p.write_field_end();
9234        p.write_field_begin("tasks", ::fbthrift::TType::List, 4);
9235        ::fbthrift::Serialize::write(&self.tasks, p);
9236        p.write_field_end();
9237        p.write_field_stop();
9238        p.write_struct_end();
9239    }
9240}
9241
9242impl<P> ::fbthrift::Deserialize<P> for self::BalanceResp
9243where
9244    P: ::fbthrift::ProtocolReader,
9245{
9246    fn read(p: &mut P) -> ::anyhow::Result<Self> {
9247        static FIELDS: &[::fbthrift::Field] = &[
9248            ::fbthrift::Field::new("code", ::fbthrift::TType::I32, 1),
9249            ::fbthrift::Field::new("id", ::fbthrift::TType::I64, 2),
9250            ::fbthrift::Field::new("leader", ::fbthrift::TType::Struct, 3),
9251            ::fbthrift::Field::new("tasks", ::fbthrift::TType::List, 4),
9252        ];
9253        let mut field_code = ::std::option::Option::None;
9254        let mut field_id = ::std::option::Option::None;
9255        let mut field_leader = ::std::option::Option::None;
9256        let mut field_tasks = ::std::option::Option::None;
9257        let _ = p.read_struct_begin(|_| ())?;
9258        loop {
9259            let (_, fty, fid) = p.read_field_begin(|_| (), FIELDS)?;
9260            match (fty, fid as ::std::primitive::i32) {
9261                (::fbthrift::TType::Stop, _) => break,
9262                (::fbthrift::TType::I32, 1) => field_code = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
9263                (::fbthrift::TType::I64, 2) => field_id = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
9264                (::fbthrift::TType::Struct, 3) => field_leader = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
9265                (::fbthrift::TType::List, 4) => field_tasks = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
9266                (fty, _) => p.skip(fty)?,
9267            }
9268            p.read_field_end()?;
9269        }
9270        p.read_struct_end()?;
9271        ::std::result::Result::Ok(Self {
9272            code: field_code.unwrap_or_default(),
9273            id: field_id.unwrap_or_default(),
9274            leader: field_leader.unwrap_or_default(),
9275            tasks: field_tasks.unwrap_or_default(),
9276            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
9277        })
9278    }
9279}
9280
9281
9282#[allow(clippy::derivable_impls)]
9283impl ::std::default::Default for self::LeaderBalanceReq {
9284    fn default() -> Self {
9285        Self {
9286            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
9287        }
9288    }
9289}
9290
9291impl ::std::fmt::Debug for self::LeaderBalanceReq {
9292    fn fmt(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
9293        formatter
9294            .debug_struct("LeaderBalanceReq")
9295            .finish()
9296    }
9297}
9298
9299unsafe impl ::std::marker::Send for self::LeaderBalanceReq {}
9300unsafe impl ::std::marker::Sync for self::LeaderBalanceReq {}
9301
9302impl ::fbthrift::GetTType for self::LeaderBalanceReq {
9303    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::Struct;
9304}
9305
9306impl<P> ::fbthrift::Serialize<P> for self::LeaderBalanceReq
9307where
9308    P: ::fbthrift::ProtocolWriter,
9309{
9310    fn write(&self, p: &mut P) {
9311        p.write_struct_begin("LeaderBalanceReq");
9312        p.write_field_stop();
9313        p.write_struct_end();
9314    }
9315}
9316
9317impl<P> ::fbthrift::Deserialize<P> for self::LeaderBalanceReq
9318where
9319    P: ::fbthrift::ProtocolReader,
9320{
9321    fn read(p: &mut P) -> ::anyhow::Result<Self> {
9322        static FIELDS: &[::fbthrift::Field] = &[
9323        ];
9324        let _ = p.read_struct_begin(|_| ())?;
9325        loop {
9326            let (_, fty, fid) = p.read_field_begin(|_| (), FIELDS)?;
9327            match (fty, fid as ::std::primitive::i32) {
9328                (::fbthrift::TType::Stop, _) => break,
9329                (fty, _) => p.skip(fty)?,
9330            }
9331            p.read_field_end()?;
9332        }
9333        p.read_struct_end()?;
9334        ::std::result::Result::Ok(Self {
9335            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
9336        })
9337    }
9338}
9339
9340
9341#[allow(clippy::derivable_impls)]
9342impl ::std::default::Default for self::ConfigItem {
9343    fn default() -> Self {
9344        Self {
9345            module: ::std::default::Default::default(),
9346            name: ::std::default::Default::default(),
9347            r#type: ::std::default::Default::default(),
9348            mode: ::std::default::Default::default(),
9349            value: ::std::default::Default::default(),
9350            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
9351        }
9352    }
9353}
9354
9355impl ::std::fmt::Debug for self::ConfigItem {
9356    fn fmt(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
9357        formatter
9358            .debug_struct("ConfigItem")
9359            .field("module", &self.module)
9360            .field("name", &self.name)
9361            .field("r#type", &self.r#type)
9362            .field("mode", &self.mode)
9363            .field("value", &self.value)
9364            .finish()
9365    }
9366}
9367
9368unsafe impl ::std::marker::Send for self::ConfigItem {}
9369unsafe impl ::std::marker::Sync for self::ConfigItem {}
9370
9371impl ::fbthrift::GetTType for self::ConfigItem {
9372    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::Struct;
9373}
9374
9375impl<P> ::fbthrift::Serialize<P> for self::ConfigItem
9376where
9377    P: ::fbthrift::ProtocolWriter,
9378{
9379    fn write(&self, p: &mut P) {
9380        p.write_struct_begin("ConfigItem");
9381        p.write_field_begin("module", ::fbthrift::TType::I32, 1);
9382        ::fbthrift::Serialize::write(&self.module, p);
9383        p.write_field_end();
9384        p.write_field_begin("name", ::fbthrift::TType::String, 2);
9385        ::fbthrift::Serialize::write(&self.name, p);
9386        p.write_field_end();
9387        p.write_field_begin("type", ::fbthrift::TType::I32, 3);
9388        ::fbthrift::Serialize::write(&self.r#type, p);
9389        p.write_field_end();
9390        p.write_field_begin("mode", ::fbthrift::TType::I32, 4);
9391        ::fbthrift::Serialize::write(&self.mode, p);
9392        p.write_field_end();
9393        p.write_field_begin("value", ::fbthrift::TType::String, 5);
9394        ::fbthrift::Serialize::write(&self.value, p);
9395        p.write_field_end();
9396        p.write_field_stop();
9397        p.write_struct_end();
9398    }
9399}
9400
9401impl<P> ::fbthrift::Deserialize<P> for self::ConfigItem
9402where
9403    P: ::fbthrift::ProtocolReader,
9404{
9405    fn read(p: &mut P) -> ::anyhow::Result<Self> {
9406        static FIELDS: &[::fbthrift::Field] = &[
9407            ::fbthrift::Field::new("mode", ::fbthrift::TType::I32, 4),
9408            ::fbthrift::Field::new("module", ::fbthrift::TType::I32, 1),
9409            ::fbthrift::Field::new("name", ::fbthrift::TType::String, 2),
9410            ::fbthrift::Field::new("type", ::fbthrift::TType::I32, 3),
9411            ::fbthrift::Field::new("value", ::fbthrift::TType::String, 5),
9412        ];
9413        let mut field_module = ::std::option::Option::None;
9414        let mut field_name = ::std::option::Option::None;
9415        let mut field_type = ::std::option::Option::None;
9416        let mut field_mode = ::std::option::Option::None;
9417        let mut field_value = ::std::option::Option::None;
9418        let _ = p.read_struct_begin(|_| ())?;
9419        loop {
9420            let (_, fty, fid) = p.read_field_begin(|_| (), FIELDS)?;
9421            match (fty, fid as ::std::primitive::i32) {
9422                (::fbthrift::TType::Stop, _) => break,
9423                (::fbthrift::TType::I32, 1) => field_module = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
9424                (::fbthrift::TType::String, 2) => field_name = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
9425                (::fbthrift::TType::I32, 3) => field_type = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
9426                (::fbthrift::TType::I32, 4) => field_mode = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
9427                (::fbthrift::TType::String, 5) => field_value = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
9428                (fty, _) => p.skip(fty)?,
9429            }
9430            p.read_field_end()?;
9431        }
9432        p.read_struct_end()?;
9433        ::std::result::Result::Ok(Self {
9434            module: field_module.unwrap_or_default(),
9435            name: field_name.unwrap_or_default(),
9436            r#type: field_type.unwrap_or_default(),
9437            mode: field_mode.unwrap_or_default(),
9438            value: field_value.unwrap_or_default(),
9439            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
9440        })
9441    }
9442}
9443
9444
9445#[allow(clippy::derivable_impls)]
9446impl ::std::default::Default for self::RegConfigReq {
9447    fn default() -> Self {
9448        Self {
9449            items: ::std::default::Default::default(),
9450            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
9451        }
9452    }
9453}
9454
9455impl ::std::fmt::Debug for self::RegConfigReq {
9456    fn fmt(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
9457        formatter
9458            .debug_struct("RegConfigReq")
9459            .field("items", &self.items)
9460            .finish()
9461    }
9462}
9463
9464unsafe impl ::std::marker::Send for self::RegConfigReq {}
9465unsafe impl ::std::marker::Sync for self::RegConfigReq {}
9466
9467impl ::fbthrift::GetTType for self::RegConfigReq {
9468    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::Struct;
9469}
9470
9471impl<P> ::fbthrift::Serialize<P> for self::RegConfigReq
9472where
9473    P: ::fbthrift::ProtocolWriter,
9474{
9475    fn write(&self, p: &mut P) {
9476        p.write_struct_begin("RegConfigReq");
9477        p.write_field_begin("items", ::fbthrift::TType::List, 1);
9478        ::fbthrift::Serialize::write(&self.items, p);
9479        p.write_field_end();
9480        p.write_field_stop();
9481        p.write_struct_end();
9482    }
9483}
9484
9485impl<P> ::fbthrift::Deserialize<P> for self::RegConfigReq
9486where
9487    P: ::fbthrift::ProtocolReader,
9488{
9489    fn read(p: &mut P) -> ::anyhow::Result<Self> {
9490        static FIELDS: &[::fbthrift::Field] = &[
9491            ::fbthrift::Field::new("items", ::fbthrift::TType::List, 1),
9492        ];
9493        let mut field_items = ::std::option::Option::None;
9494        let _ = p.read_struct_begin(|_| ())?;
9495        loop {
9496            let (_, fty, fid) = p.read_field_begin(|_| (), FIELDS)?;
9497            match (fty, fid as ::std::primitive::i32) {
9498                (::fbthrift::TType::Stop, _) => break,
9499                (::fbthrift::TType::List, 1) => field_items = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
9500                (fty, _) => p.skip(fty)?,
9501            }
9502            p.read_field_end()?;
9503        }
9504        p.read_struct_end()?;
9505        ::std::result::Result::Ok(Self {
9506            items: field_items.unwrap_or_default(),
9507            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
9508        })
9509    }
9510}
9511
9512
9513#[allow(clippy::derivable_impls)]
9514impl ::std::default::Default for self::GetConfigReq {
9515    fn default() -> Self {
9516        Self {
9517            item: ::std::default::Default::default(),
9518            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
9519        }
9520    }
9521}
9522
9523impl ::std::fmt::Debug for self::GetConfigReq {
9524    fn fmt(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
9525        formatter
9526            .debug_struct("GetConfigReq")
9527            .field("item", &self.item)
9528            .finish()
9529    }
9530}
9531
9532unsafe impl ::std::marker::Send for self::GetConfigReq {}
9533unsafe impl ::std::marker::Sync for self::GetConfigReq {}
9534
9535impl ::fbthrift::GetTType for self::GetConfigReq {
9536    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::Struct;
9537}
9538
9539impl<P> ::fbthrift::Serialize<P> for self::GetConfigReq
9540where
9541    P: ::fbthrift::ProtocolWriter,
9542{
9543    fn write(&self, p: &mut P) {
9544        p.write_struct_begin("GetConfigReq");
9545        p.write_field_begin("item", ::fbthrift::TType::Struct, 1);
9546        ::fbthrift::Serialize::write(&self.item, p);
9547        p.write_field_end();
9548        p.write_field_stop();
9549        p.write_struct_end();
9550    }
9551}
9552
9553impl<P> ::fbthrift::Deserialize<P> for self::GetConfigReq
9554where
9555    P: ::fbthrift::ProtocolReader,
9556{
9557    fn read(p: &mut P) -> ::anyhow::Result<Self> {
9558        static FIELDS: &[::fbthrift::Field] = &[
9559            ::fbthrift::Field::new("item", ::fbthrift::TType::Struct, 1),
9560        ];
9561        let mut field_item = ::std::option::Option::None;
9562        let _ = p.read_struct_begin(|_| ())?;
9563        loop {
9564            let (_, fty, fid) = p.read_field_begin(|_| (), FIELDS)?;
9565            match (fty, fid as ::std::primitive::i32) {
9566                (::fbthrift::TType::Stop, _) => break,
9567                (::fbthrift::TType::Struct, 1) => field_item = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
9568                (fty, _) => p.skip(fty)?,
9569            }
9570            p.read_field_end()?;
9571        }
9572        p.read_struct_end()?;
9573        ::std::result::Result::Ok(Self {
9574            item: field_item.unwrap_or_default(),
9575            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
9576        })
9577    }
9578}
9579
9580
9581#[allow(clippy::derivable_impls)]
9582impl ::std::default::Default for self::GetConfigResp {
9583    fn default() -> Self {
9584        Self {
9585            code: ::std::default::Default::default(),
9586            leader: ::std::default::Default::default(),
9587            items: ::std::default::Default::default(),
9588            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
9589        }
9590    }
9591}
9592
9593impl ::std::fmt::Debug for self::GetConfigResp {
9594    fn fmt(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
9595        formatter
9596            .debug_struct("GetConfigResp")
9597            .field("code", &self.code)
9598            .field("leader", &self.leader)
9599            .field("items", &self.items)
9600            .finish()
9601    }
9602}
9603
9604unsafe impl ::std::marker::Send for self::GetConfigResp {}
9605unsafe impl ::std::marker::Sync for self::GetConfigResp {}
9606
9607impl ::fbthrift::GetTType for self::GetConfigResp {
9608    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::Struct;
9609}
9610
9611impl<P> ::fbthrift::Serialize<P> for self::GetConfigResp
9612where
9613    P: ::fbthrift::ProtocolWriter,
9614{
9615    fn write(&self, p: &mut P) {
9616        p.write_struct_begin("GetConfigResp");
9617        p.write_field_begin("code", ::fbthrift::TType::I32, 1);
9618        ::fbthrift::Serialize::write(&self.code, p);
9619        p.write_field_end();
9620        p.write_field_begin("leader", ::fbthrift::TType::Struct, 2);
9621        ::fbthrift::Serialize::write(&self.leader, p);
9622        p.write_field_end();
9623        p.write_field_begin("items", ::fbthrift::TType::List, 3);
9624        ::fbthrift::Serialize::write(&self.items, p);
9625        p.write_field_end();
9626        p.write_field_stop();
9627        p.write_struct_end();
9628    }
9629}
9630
9631impl<P> ::fbthrift::Deserialize<P> for self::GetConfigResp
9632where
9633    P: ::fbthrift::ProtocolReader,
9634{
9635    fn read(p: &mut P) -> ::anyhow::Result<Self> {
9636        static FIELDS: &[::fbthrift::Field] = &[
9637            ::fbthrift::Field::new("code", ::fbthrift::TType::I32, 1),
9638            ::fbthrift::Field::new("items", ::fbthrift::TType::List, 3),
9639            ::fbthrift::Field::new("leader", ::fbthrift::TType::Struct, 2),
9640        ];
9641        let mut field_code = ::std::option::Option::None;
9642        let mut field_leader = ::std::option::Option::None;
9643        let mut field_items = ::std::option::Option::None;
9644        let _ = p.read_struct_begin(|_| ())?;
9645        loop {
9646            let (_, fty, fid) = p.read_field_begin(|_| (), FIELDS)?;
9647            match (fty, fid as ::std::primitive::i32) {
9648                (::fbthrift::TType::Stop, _) => break,
9649                (::fbthrift::TType::I32, 1) => field_code = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
9650                (::fbthrift::TType::Struct, 2) => field_leader = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
9651                (::fbthrift::TType::List, 3) => field_items = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
9652                (fty, _) => p.skip(fty)?,
9653            }
9654            p.read_field_end()?;
9655        }
9656        p.read_struct_end()?;
9657        ::std::result::Result::Ok(Self {
9658            code: field_code.unwrap_or_default(),
9659            leader: field_leader.unwrap_or_default(),
9660            items: field_items.unwrap_or_default(),
9661            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
9662        })
9663    }
9664}
9665
9666
9667#[allow(clippy::derivable_impls)]
9668impl ::std::default::Default for self::SetConfigReq {
9669    fn default() -> Self {
9670        Self {
9671            item: ::std::default::Default::default(),
9672            force: ::std::default::Default::default(),
9673            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
9674        }
9675    }
9676}
9677
9678impl ::std::fmt::Debug for self::SetConfigReq {
9679    fn fmt(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
9680        formatter
9681            .debug_struct("SetConfigReq")
9682            .field("item", &self.item)
9683            .field("force", &self.force)
9684            .finish()
9685    }
9686}
9687
9688unsafe impl ::std::marker::Send for self::SetConfigReq {}
9689unsafe impl ::std::marker::Sync for self::SetConfigReq {}
9690
9691impl ::fbthrift::GetTType for self::SetConfigReq {
9692    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::Struct;
9693}
9694
9695impl<P> ::fbthrift::Serialize<P> for self::SetConfigReq
9696where
9697    P: ::fbthrift::ProtocolWriter,
9698{
9699    fn write(&self, p: &mut P) {
9700        p.write_struct_begin("SetConfigReq");
9701        p.write_field_begin("item", ::fbthrift::TType::Struct, 1);
9702        ::fbthrift::Serialize::write(&self.item, p);
9703        p.write_field_end();
9704        p.write_field_begin("force", ::fbthrift::TType::Bool, 2);
9705        ::fbthrift::Serialize::write(&self.force, p);
9706        p.write_field_end();
9707        p.write_field_stop();
9708        p.write_struct_end();
9709    }
9710}
9711
9712impl<P> ::fbthrift::Deserialize<P> for self::SetConfigReq
9713where
9714    P: ::fbthrift::ProtocolReader,
9715{
9716    fn read(p: &mut P) -> ::anyhow::Result<Self> {
9717        static FIELDS: &[::fbthrift::Field] = &[
9718            ::fbthrift::Field::new("force", ::fbthrift::TType::Bool, 2),
9719            ::fbthrift::Field::new("item", ::fbthrift::TType::Struct, 1),
9720        ];
9721        let mut field_item = ::std::option::Option::None;
9722        let mut field_force = ::std::option::Option::None;
9723        let _ = p.read_struct_begin(|_| ())?;
9724        loop {
9725            let (_, fty, fid) = p.read_field_begin(|_| (), FIELDS)?;
9726            match (fty, fid as ::std::primitive::i32) {
9727                (::fbthrift::TType::Stop, _) => break,
9728                (::fbthrift::TType::Struct, 1) => field_item = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
9729                (::fbthrift::TType::Bool, 2) => field_force = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
9730                (fty, _) => p.skip(fty)?,
9731            }
9732            p.read_field_end()?;
9733        }
9734        p.read_struct_end()?;
9735        ::std::result::Result::Ok(Self {
9736            item: field_item.unwrap_or_default(),
9737            force: field_force.unwrap_or_default(),
9738            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
9739        })
9740    }
9741}
9742
9743
9744#[allow(clippy::derivable_impls)]
9745impl ::std::default::Default for self::ListConfigsReq {
9746    fn default() -> Self {
9747        Self {
9748            space: ::std::default::Default::default(),
9749            module: ::std::default::Default::default(),
9750            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
9751        }
9752    }
9753}
9754
9755impl ::std::fmt::Debug for self::ListConfigsReq {
9756    fn fmt(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
9757        formatter
9758            .debug_struct("ListConfigsReq")
9759            .field("space", &self.space)
9760            .field("module", &self.module)
9761            .finish()
9762    }
9763}
9764
9765unsafe impl ::std::marker::Send for self::ListConfigsReq {}
9766unsafe impl ::std::marker::Sync for self::ListConfigsReq {}
9767
9768impl ::fbthrift::GetTType for self::ListConfigsReq {
9769    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::Struct;
9770}
9771
9772impl<P> ::fbthrift::Serialize<P> for self::ListConfigsReq
9773where
9774    P: ::fbthrift::ProtocolWriter,
9775{
9776    fn write(&self, p: &mut P) {
9777        p.write_struct_begin("ListConfigsReq");
9778        p.write_field_begin("space", ::fbthrift::TType::String, 1);
9779        ::fbthrift::Serialize::write(&self.space, p);
9780        p.write_field_end();
9781        p.write_field_begin("module", ::fbthrift::TType::I32, 2);
9782        ::fbthrift::Serialize::write(&self.module, p);
9783        p.write_field_end();
9784        p.write_field_stop();
9785        p.write_struct_end();
9786    }
9787}
9788
9789impl<P> ::fbthrift::Deserialize<P> for self::ListConfigsReq
9790where
9791    P: ::fbthrift::ProtocolReader,
9792{
9793    fn read(p: &mut P) -> ::anyhow::Result<Self> {
9794        static FIELDS: &[::fbthrift::Field] = &[
9795            ::fbthrift::Field::new("module", ::fbthrift::TType::I32, 2),
9796            ::fbthrift::Field::new("space", ::fbthrift::TType::String, 1),
9797        ];
9798        let mut field_space = ::std::option::Option::None;
9799        let mut field_module = ::std::option::Option::None;
9800        let _ = p.read_struct_begin(|_| ())?;
9801        loop {
9802            let (_, fty, fid) = p.read_field_begin(|_| (), FIELDS)?;
9803            match (fty, fid as ::std::primitive::i32) {
9804                (::fbthrift::TType::Stop, _) => break,
9805                (::fbthrift::TType::String, 1) => field_space = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
9806                (::fbthrift::TType::I32, 2) => field_module = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
9807                (fty, _) => p.skip(fty)?,
9808            }
9809            p.read_field_end()?;
9810        }
9811        p.read_struct_end()?;
9812        ::std::result::Result::Ok(Self {
9813            space: field_space.unwrap_or_default(),
9814            module: field_module.unwrap_or_default(),
9815            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
9816        })
9817    }
9818}
9819
9820
9821#[allow(clippy::derivable_impls)]
9822impl ::std::default::Default for self::ListConfigsResp {
9823    fn default() -> Self {
9824        Self {
9825            code: ::std::default::Default::default(),
9826            leader: ::std::default::Default::default(),
9827            items: ::std::default::Default::default(),
9828            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
9829        }
9830    }
9831}
9832
9833impl ::std::fmt::Debug for self::ListConfigsResp {
9834    fn fmt(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
9835        formatter
9836            .debug_struct("ListConfigsResp")
9837            .field("code", &self.code)
9838            .field("leader", &self.leader)
9839            .field("items", &self.items)
9840            .finish()
9841    }
9842}
9843
9844unsafe impl ::std::marker::Send for self::ListConfigsResp {}
9845unsafe impl ::std::marker::Sync for self::ListConfigsResp {}
9846
9847impl ::fbthrift::GetTType for self::ListConfigsResp {
9848    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::Struct;
9849}
9850
9851impl<P> ::fbthrift::Serialize<P> for self::ListConfigsResp
9852where
9853    P: ::fbthrift::ProtocolWriter,
9854{
9855    fn write(&self, p: &mut P) {
9856        p.write_struct_begin("ListConfigsResp");
9857        p.write_field_begin("code", ::fbthrift::TType::I32, 1);
9858        ::fbthrift::Serialize::write(&self.code, p);
9859        p.write_field_end();
9860        p.write_field_begin("leader", ::fbthrift::TType::Struct, 2);
9861        ::fbthrift::Serialize::write(&self.leader, p);
9862        p.write_field_end();
9863        p.write_field_begin("items", ::fbthrift::TType::List, 3);
9864        ::fbthrift::Serialize::write(&self.items, p);
9865        p.write_field_end();
9866        p.write_field_stop();
9867        p.write_struct_end();
9868    }
9869}
9870
9871impl<P> ::fbthrift::Deserialize<P> for self::ListConfigsResp
9872where
9873    P: ::fbthrift::ProtocolReader,
9874{
9875    fn read(p: &mut P) -> ::anyhow::Result<Self> {
9876        static FIELDS: &[::fbthrift::Field] = &[
9877            ::fbthrift::Field::new("code", ::fbthrift::TType::I32, 1),
9878            ::fbthrift::Field::new("items", ::fbthrift::TType::List, 3),
9879            ::fbthrift::Field::new("leader", ::fbthrift::TType::Struct, 2),
9880        ];
9881        let mut field_code = ::std::option::Option::None;
9882        let mut field_leader = ::std::option::Option::None;
9883        let mut field_items = ::std::option::Option::None;
9884        let _ = p.read_struct_begin(|_| ())?;
9885        loop {
9886            let (_, fty, fid) = p.read_field_begin(|_| (), FIELDS)?;
9887            match (fty, fid as ::std::primitive::i32) {
9888                (::fbthrift::TType::Stop, _) => break,
9889                (::fbthrift::TType::I32, 1) => field_code = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
9890                (::fbthrift::TType::Struct, 2) => field_leader = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
9891                (::fbthrift::TType::List, 3) => field_items = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
9892                (fty, _) => p.skip(fty)?,
9893            }
9894            p.read_field_end()?;
9895        }
9896        p.read_struct_end()?;
9897        ::std::result::Result::Ok(Self {
9898            code: field_code.unwrap_or_default(),
9899            leader: field_leader.unwrap_or_default(),
9900            items: field_items.unwrap_or_default(),
9901            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
9902        })
9903    }
9904}
9905
9906
9907#[allow(clippy::derivable_impls)]
9908impl ::std::default::Default for self::CreateSnapshotReq {
9909    fn default() -> Self {
9910        Self {
9911            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
9912        }
9913    }
9914}
9915
9916impl ::std::fmt::Debug for self::CreateSnapshotReq {
9917    fn fmt(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
9918        formatter
9919            .debug_struct("CreateSnapshotReq")
9920            .finish()
9921    }
9922}
9923
9924unsafe impl ::std::marker::Send for self::CreateSnapshotReq {}
9925unsafe impl ::std::marker::Sync for self::CreateSnapshotReq {}
9926
9927impl ::fbthrift::GetTType for self::CreateSnapshotReq {
9928    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::Struct;
9929}
9930
9931impl<P> ::fbthrift::Serialize<P> for self::CreateSnapshotReq
9932where
9933    P: ::fbthrift::ProtocolWriter,
9934{
9935    fn write(&self, p: &mut P) {
9936        p.write_struct_begin("CreateSnapshotReq");
9937        p.write_field_stop();
9938        p.write_struct_end();
9939    }
9940}
9941
9942impl<P> ::fbthrift::Deserialize<P> for self::CreateSnapshotReq
9943where
9944    P: ::fbthrift::ProtocolReader,
9945{
9946    fn read(p: &mut P) -> ::anyhow::Result<Self> {
9947        static FIELDS: &[::fbthrift::Field] = &[
9948        ];
9949        let _ = p.read_struct_begin(|_| ())?;
9950        loop {
9951            let (_, fty, fid) = p.read_field_begin(|_| (), FIELDS)?;
9952            match (fty, fid as ::std::primitive::i32) {
9953                (::fbthrift::TType::Stop, _) => break,
9954                (fty, _) => p.skip(fty)?,
9955            }
9956            p.read_field_end()?;
9957        }
9958        p.read_struct_end()?;
9959        ::std::result::Result::Ok(Self {
9960            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
9961        })
9962    }
9963}
9964
9965
9966#[allow(clippy::derivable_impls)]
9967impl ::std::default::Default for self::DropSnapshotReq {
9968    fn default() -> Self {
9969        Self {
9970            name: ::std::default::Default::default(),
9971            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
9972        }
9973    }
9974}
9975
9976impl ::std::fmt::Debug for self::DropSnapshotReq {
9977    fn fmt(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
9978        formatter
9979            .debug_struct("DropSnapshotReq")
9980            .field("name", &self.name)
9981            .finish()
9982    }
9983}
9984
9985unsafe impl ::std::marker::Send for self::DropSnapshotReq {}
9986unsafe impl ::std::marker::Sync for self::DropSnapshotReq {}
9987
9988impl ::fbthrift::GetTType for self::DropSnapshotReq {
9989    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::Struct;
9990}
9991
9992impl<P> ::fbthrift::Serialize<P> for self::DropSnapshotReq
9993where
9994    P: ::fbthrift::ProtocolWriter,
9995{
9996    fn write(&self, p: &mut P) {
9997        p.write_struct_begin("DropSnapshotReq");
9998        p.write_field_begin("name", ::fbthrift::TType::String, 1);
9999        ::fbthrift::Serialize::write(&self.name, p);
10000        p.write_field_end();
10001        p.write_field_stop();
10002        p.write_struct_end();
10003    }
10004}
10005
10006impl<P> ::fbthrift::Deserialize<P> for self::DropSnapshotReq
10007where
10008    P: ::fbthrift::ProtocolReader,
10009{
10010    fn read(p: &mut P) -> ::anyhow::Result<Self> {
10011        static FIELDS: &[::fbthrift::Field] = &[
10012            ::fbthrift::Field::new("name", ::fbthrift::TType::String, 1),
10013        ];
10014        let mut field_name = ::std::option::Option::None;
10015        let _ = p.read_struct_begin(|_| ())?;
10016        loop {
10017            let (_, fty, fid) = p.read_field_begin(|_| (), FIELDS)?;
10018            match (fty, fid as ::std::primitive::i32) {
10019                (::fbthrift::TType::Stop, _) => break,
10020                (::fbthrift::TType::String, 1) => field_name = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
10021                (fty, _) => p.skip(fty)?,
10022            }
10023            p.read_field_end()?;
10024        }
10025        p.read_struct_end()?;
10026        ::std::result::Result::Ok(Self {
10027            name: field_name.unwrap_or_default(),
10028            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
10029        })
10030    }
10031}
10032
10033
10034#[allow(clippy::derivable_impls)]
10035impl ::std::default::Default for self::ListSnapshotsReq {
10036    fn default() -> Self {
10037        Self {
10038            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
10039        }
10040    }
10041}
10042
10043impl ::std::fmt::Debug for self::ListSnapshotsReq {
10044    fn fmt(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
10045        formatter
10046            .debug_struct("ListSnapshotsReq")
10047            .finish()
10048    }
10049}
10050
10051unsafe impl ::std::marker::Send for self::ListSnapshotsReq {}
10052unsafe impl ::std::marker::Sync for self::ListSnapshotsReq {}
10053
10054impl ::fbthrift::GetTType for self::ListSnapshotsReq {
10055    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::Struct;
10056}
10057
10058impl<P> ::fbthrift::Serialize<P> for self::ListSnapshotsReq
10059where
10060    P: ::fbthrift::ProtocolWriter,
10061{
10062    fn write(&self, p: &mut P) {
10063        p.write_struct_begin("ListSnapshotsReq");
10064        p.write_field_stop();
10065        p.write_struct_end();
10066    }
10067}
10068
10069impl<P> ::fbthrift::Deserialize<P> for self::ListSnapshotsReq
10070where
10071    P: ::fbthrift::ProtocolReader,
10072{
10073    fn read(p: &mut P) -> ::anyhow::Result<Self> {
10074        static FIELDS: &[::fbthrift::Field] = &[
10075        ];
10076        let _ = p.read_struct_begin(|_| ())?;
10077        loop {
10078            let (_, fty, fid) = p.read_field_begin(|_| (), FIELDS)?;
10079            match (fty, fid as ::std::primitive::i32) {
10080                (::fbthrift::TType::Stop, _) => break,
10081                (fty, _) => p.skip(fty)?,
10082            }
10083            p.read_field_end()?;
10084        }
10085        p.read_struct_end()?;
10086        ::std::result::Result::Ok(Self {
10087            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
10088        })
10089    }
10090}
10091
10092
10093#[allow(clippy::derivable_impls)]
10094impl ::std::default::Default for self::Snapshot {
10095    fn default() -> Self {
10096        Self {
10097            name: ::std::default::Default::default(),
10098            status: ::std::default::Default::default(),
10099            hosts: ::std::default::Default::default(),
10100            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
10101        }
10102    }
10103}
10104
10105impl ::std::fmt::Debug for self::Snapshot {
10106    fn fmt(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
10107        formatter
10108            .debug_struct("Snapshot")
10109            .field("name", &self.name)
10110            .field("status", &self.status)
10111            .field("hosts", &self.hosts)
10112            .finish()
10113    }
10114}
10115
10116unsafe impl ::std::marker::Send for self::Snapshot {}
10117unsafe impl ::std::marker::Sync for self::Snapshot {}
10118
10119impl ::fbthrift::GetTType for self::Snapshot {
10120    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::Struct;
10121}
10122
10123impl<P> ::fbthrift::Serialize<P> for self::Snapshot
10124where
10125    P: ::fbthrift::ProtocolWriter,
10126{
10127    fn write(&self, p: &mut P) {
10128        p.write_struct_begin("Snapshot");
10129        p.write_field_begin("name", ::fbthrift::TType::String, 1);
10130        ::fbthrift::Serialize::write(&self.name, p);
10131        p.write_field_end();
10132        p.write_field_begin("status", ::fbthrift::TType::I32, 2);
10133        ::fbthrift::Serialize::write(&self.status, p);
10134        p.write_field_end();
10135        p.write_field_begin("hosts", ::fbthrift::TType::String, 3);
10136        ::fbthrift::Serialize::write(&self.hosts, p);
10137        p.write_field_end();
10138        p.write_field_stop();
10139        p.write_struct_end();
10140    }
10141}
10142
10143impl<P> ::fbthrift::Deserialize<P> for self::Snapshot
10144where
10145    P: ::fbthrift::ProtocolReader,
10146{
10147    fn read(p: &mut P) -> ::anyhow::Result<Self> {
10148        static FIELDS: &[::fbthrift::Field] = &[
10149            ::fbthrift::Field::new("hosts", ::fbthrift::TType::String, 3),
10150            ::fbthrift::Field::new("name", ::fbthrift::TType::String, 1),
10151            ::fbthrift::Field::new("status", ::fbthrift::TType::I32, 2),
10152        ];
10153        let mut field_name = ::std::option::Option::None;
10154        let mut field_status = ::std::option::Option::None;
10155        let mut field_hosts = ::std::option::Option::None;
10156        let _ = p.read_struct_begin(|_| ())?;
10157        loop {
10158            let (_, fty, fid) = p.read_field_begin(|_| (), FIELDS)?;
10159            match (fty, fid as ::std::primitive::i32) {
10160                (::fbthrift::TType::Stop, _) => break,
10161                (::fbthrift::TType::String, 1) => field_name = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
10162                (::fbthrift::TType::I32, 2) => field_status = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
10163                (::fbthrift::TType::String, 3) => field_hosts = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
10164                (fty, _) => p.skip(fty)?,
10165            }
10166            p.read_field_end()?;
10167        }
10168        p.read_struct_end()?;
10169        ::std::result::Result::Ok(Self {
10170            name: field_name.unwrap_or_default(),
10171            status: field_status.unwrap_or_default(),
10172            hosts: field_hosts.unwrap_or_default(),
10173            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
10174        })
10175    }
10176}
10177
10178
10179#[allow(clippy::derivable_impls)]
10180impl ::std::default::Default for self::ListSnapshotsResp {
10181    fn default() -> Self {
10182        Self {
10183            code: ::std::default::Default::default(),
10184            leader: ::std::default::Default::default(),
10185            snapshots: ::std::default::Default::default(),
10186            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
10187        }
10188    }
10189}
10190
10191impl ::std::fmt::Debug for self::ListSnapshotsResp {
10192    fn fmt(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
10193        formatter
10194            .debug_struct("ListSnapshotsResp")
10195            .field("code", &self.code)
10196            .field("leader", &self.leader)
10197            .field("snapshots", &self.snapshots)
10198            .finish()
10199    }
10200}
10201
10202unsafe impl ::std::marker::Send for self::ListSnapshotsResp {}
10203unsafe impl ::std::marker::Sync for self::ListSnapshotsResp {}
10204
10205impl ::fbthrift::GetTType for self::ListSnapshotsResp {
10206    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::Struct;
10207}
10208
10209impl<P> ::fbthrift::Serialize<P> for self::ListSnapshotsResp
10210where
10211    P: ::fbthrift::ProtocolWriter,
10212{
10213    fn write(&self, p: &mut P) {
10214        p.write_struct_begin("ListSnapshotsResp");
10215        p.write_field_begin("code", ::fbthrift::TType::I32, 1);
10216        ::fbthrift::Serialize::write(&self.code, p);
10217        p.write_field_end();
10218        p.write_field_begin("leader", ::fbthrift::TType::Struct, 2);
10219        ::fbthrift::Serialize::write(&self.leader, p);
10220        p.write_field_end();
10221        p.write_field_begin("snapshots", ::fbthrift::TType::List, 3);
10222        ::fbthrift::Serialize::write(&self.snapshots, p);
10223        p.write_field_end();
10224        p.write_field_stop();
10225        p.write_struct_end();
10226    }
10227}
10228
10229impl<P> ::fbthrift::Deserialize<P> for self::ListSnapshotsResp
10230where
10231    P: ::fbthrift::ProtocolReader,
10232{
10233    fn read(p: &mut P) -> ::anyhow::Result<Self> {
10234        static FIELDS: &[::fbthrift::Field] = &[
10235            ::fbthrift::Field::new("code", ::fbthrift::TType::I32, 1),
10236            ::fbthrift::Field::new("leader", ::fbthrift::TType::Struct, 2),
10237            ::fbthrift::Field::new("snapshots", ::fbthrift::TType::List, 3),
10238        ];
10239        let mut field_code = ::std::option::Option::None;
10240        let mut field_leader = ::std::option::Option::None;
10241        let mut field_snapshots = ::std::option::Option::None;
10242        let _ = p.read_struct_begin(|_| ())?;
10243        loop {
10244            let (_, fty, fid) = p.read_field_begin(|_| (), FIELDS)?;
10245            match (fty, fid as ::std::primitive::i32) {
10246                (::fbthrift::TType::Stop, _) => break,
10247                (::fbthrift::TType::I32, 1) => field_code = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
10248                (::fbthrift::TType::Struct, 2) => field_leader = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
10249                (::fbthrift::TType::List, 3) => field_snapshots = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
10250                (fty, _) => p.skip(fty)?,
10251            }
10252            p.read_field_end()?;
10253        }
10254        p.read_struct_end()?;
10255        ::std::result::Result::Ok(Self {
10256            code: field_code.unwrap_or_default(),
10257            leader: field_leader.unwrap_or_default(),
10258            snapshots: field_snapshots.unwrap_or_default(),
10259            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
10260        })
10261    }
10262}
10263
10264
10265#[allow(clippy::derivable_impls)]
10266impl ::std::default::Default for self::ListIndexStatusReq {
10267    fn default() -> Self {
10268        Self {
10269            space_id: ::std::default::Default::default(),
10270            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
10271        }
10272    }
10273}
10274
10275impl ::std::fmt::Debug for self::ListIndexStatusReq {
10276    fn fmt(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
10277        formatter
10278            .debug_struct("ListIndexStatusReq")
10279            .field("space_id", &self.space_id)
10280            .finish()
10281    }
10282}
10283
10284unsafe impl ::std::marker::Send for self::ListIndexStatusReq {}
10285unsafe impl ::std::marker::Sync for self::ListIndexStatusReq {}
10286
10287impl ::fbthrift::GetTType for self::ListIndexStatusReq {
10288    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::Struct;
10289}
10290
10291impl<P> ::fbthrift::Serialize<P> for self::ListIndexStatusReq
10292where
10293    P: ::fbthrift::ProtocolWriter,
10294{
10295    fn write(&self, p: &mut P) {
10296        p.write_struct_begin("ListIndexStatusReq");
10297        p.write_field_begin("space_id", ::fbthrift::TType::I32, 1);
10298        ::fbthrift::Serialize::write(&self.space_id, p);
10299        p.write_field_end();
10300        p.write_field_stop();
10301        p.write_struct_end();
10302    }
10303}
10304
10305impl<P> ::fbthrift::Deserialize<P> for self::ListIndexStatusReq
10306where
10307    P: ::fbthrift::ProtocolReader,
10308{
10309    fn read(p: &mut P) -> ::anyhow::Result<Self> {
10310        static FIELDS: &[::fbthrift::Field] = &[
10311            ::fbthrift::Field::new("space_id", ::fbthrift::TType::I32, 1),
10312        ];
10313        let mut field_space_id = ::std::option::Option::None;
10314        let _ = p.read_struct_begin(|_| ())?;
10315        loop {
10316            let (_, fty, fid) = p.read_field_begin(|_| (), FIELDS)?;
10317            match (fty, fid as ::std::primitive::i32) {
10318                (::fbthrift::TType::Stop, _) => break,
10319                (::fbthrift::TType::I32, 1) => field_space_id = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
10320                (fty, _) => p.skip(fty)?,
10321            }
10322            p.read_field_end()?;
10323        }
10324        p.read_struct_end()?;
10325        ::std::result::Result::Ok(Self {
10326            space_id: field_space_id.unwrap_or_default(),
10327            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
10328        })
10329    }
10330}
10331
10332
10333#[allow(clippy::derivable_impls)]
10334impl ::std::default::Default for self::IndexStatus {
10335    fn default() -> Self {
10336        Self {
10337            name: ::std::default::Default::default(),
10338            status: ::std::default::Default::default(),
10339            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
10340        }
10341    }
10342}
10343
10344impl ::std::fmt::Debug for self::IndexStatus {
10345    fn fmt(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
10346        formatter
10347            .debug_struct("IndexStatus")
10348            .field("name", &self.name)
10349            .field("status", &self.status)
10350            .finish()
10351    }
10352}
10353
10354unsafe impl ::std::marker::Send for self::IndexStatus {}
10355unsafe impl ::std::marker::Sync for self::IndexStatus {}
10356
10357impl ::fbthrift::GetTType for self::IndexStatus {
10358    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::Struct;
10359}
10360
10361impl<P> ::fbthrift::Serialize<P> for self::IndexStatus
10362where
10363    P: ::fbthrift::ProtocolWriter,
10364{
10365    fn write(&self, p: &mut P) {
10366        p.write_struct_begin("IndexStatus");
10367        p.write_field_begin("name", ::fbthrift::TType::String, 1);
10368        ::fbthrift::Serialize::write(&self.name, p);
10369        p.write_field_end();
10370        p.write_field_begin("status", ::fbthrift::TType::String, 2);
10371        ::fbthrift::Serialize::write(&self.status, p);
10372        p.write_field_end();
10373        p.write_field_stop();
10374        p.write_struct_end();
10375    }
10376}
10377
10378impl<P> ::fbthrift::Deserialize<P> for self::IndexStatus
10379where
10380    P: ::fbthrift::ProtocolReader,
10381{
10382    fn read(p: &mut P) -> ::anyhow::Result<Self> {
10383        static FIELDS: &[::fbthrift::Field] = &[
10384            ::fbthrift::Field::new("name", ::fbthrift::TType::String, 1),
10385            ::fbthrift::Field::new("status", ::fbthrift::TType::String, 2),
10386        ];
10387        let mut field_name = ::std::option::Option::None;
10388        let mut field_status = ::std::option::Option::None;
10389        let _ = p.read_struct_begin(|_| ())?;
10390        loop {
10391            let (_, fty, fid) = p.read_field_begin(|_| (), FIELDS)?;
10392            match (fty, fid as ::std::primitive::i32) {
10393                (::fbthrift::TType::Stop, _) => break,
10394                (::fbthrift::TType::String, 1) => field_name = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
10395                (::fbthrift::TType::String, 2) => field_status = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
10396                (fty, _) => p.skip(fty)?,
10397            }
10398            p.read_field_end()?;
10399        }
10400        p.read_struct_end()?;
10401        ::std::result::Result::Ok(Self {
10402            name: field_name.unwrap_or_default(),
10403            status: field_status.unwrap_or_default(),
10404            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
10405        })
10406    }
10407}
10408
10409
10410#[allow(clippy::derivable_impls)]
10411impl ::std::default::Default for self::ListIndexStatusResp {
10412    fn default() -> Self {
10413        Self {
10414            code: ::std::default::Default::default(),
10415            leader: ::std::default::Default::default(),
10416            statuses: ::std::default::Default::default(),
10417            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
10418        }
10419    }
10420}
10421
10422impl ::std::fmt::Debug for self::ListIndexStatusResp {
10423    fn fmt(&self, formatter: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
10424        formatter
10425            .debug_struct("ListIndexStatusResp")
10426            .field("code", &self.code)
10427            .field("leader", &self.leader)
10428            .field("statuses", &self.statuses)
10429            .finish()
10430    }
10431}
10432
10433unsafe impl ::std::marker::Send for self::ListIndexStatusResp {}
10434unsafe impl ::std::marker::Sync for self::ListIndexStatusResp {}
10435
10436impl ::fbthrift::GetTType for self::ListIndexStatusResp {
10437    const TTYPE: ::fbthrift::TType = ::fbthrift::TType::Struct;
10438}
10439
10440impl<P> ::fbthrift::Serialize<P> for self::ListIndexStatusResp
10441where
10442    P: ::fbthrift::ProtocolWriter,
10443{
10444    fn write(&self, p: &mut P) {
10445        p.write_struct_begin("ListIndexStatusResp");
10446        p.write_field_begin("code", ::fbthrift::TType::I32, 1);
10447        ::fbthrift::Serialize::write(&self.code, p);
10448        p.write_field_end();
10449        p.write_field_begin("leader", ::fbthrift::TType::Struct, 2);
10450        ::fbthrift::Serialize::write(&self.leader, p);
10451        p.write_field_end();
10452        p.write_field_begin("statuses", ::fbthrift::TType::List, 3);
10453        ::fbthrift::Serialize::write(&self.statuses, p);
10454        p.write_field_end();
10455        p.write_field_stop();
10456        p.write_struct_end();
10457    }
10458}
10459
10460impl<P> ::fbthrift::Deserialize<P> for self::ListIndexStatusResp
10461where
10462    P: ::fbthrift::ProtocolReader,
10463{
10464    fn read(p: &mut P) -> ::anyhow::Result<Self> {
10465        static FIELDS: &[::fbthrift::Field] = &[
10466            ::fbthrift::Field::new("code", ::fbthrift::TType::I32, 1),
10467            ::fbthrift::Field::new("leader", ::fbthrift::TType::Struct, 2),
10468            ::fbthrift::Field::new("statuses", ::fbthrift::TType::List, 3),
10469        ];
10470        let mut field_code = ::std::option::Option::None;
10471        let mut field_leader = ::std::option::Option::None;
10472        let mut field_statuses = ::std::option::Option::None;
10473        let _ = p.read_struct_begin(|_| ())?;
10474        loop {
10475            let (_, fty, fid) = p.read_field_begin(|_| (), FIELDS)?;
10476            match (fty, fid as ::std::primitive::i32) {
10477                (::fbthrift::TType::Stop, _) => break,
10478                (::fbthrift::TType::I32, 1) => field_code = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
10479                (::fbthrift::TType::Struct, 2) => field_leader = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
10480                (::fbthrift::TType::List, 3) => field_statuses = ::std::option::Option::Some(::fbthrift::Deserialize::read(p)?),
10481                (fty, _) => p.skip(fty)?,
10482            }
10483            p.read_field_end()?;
10484        }
10485        p.read_struct_end()?;
10486        ::std::result::Result::Ok(Self {
10487            code: field_code.unwrap_or_default(),
10488            leader: field_leader.unwrap_or_default(),
10489            statuses: field_statuses.unwrap_or_default(),
10490            _dot_dot_Default_default: self::dot_dot::OtherFields(()),
10491        })
10492    }
10493}
10494
10495
10496mod dot_dot {
10497    #[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
10498    pub struct OtherFields(pub(crate) ());
10499
10500    #[allow(dead_code)] // if serde isn't being used
10501    pub(super) fn default_for_serde_deserialize() -> OtherFields {
10502        OtherFields(())
10503    }
10504}