1pub mod d_b_meta {
7 #[derive(Copy, Clone)]
8 pub struct Owned(());
9 impl ::capnp::introspect::Introspect for Owned { fn introspect() -> ::capnp::introspect::Type { ::capnp::introspect::TypeVariant::Struct(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types, annotation_types: _private::get_annotation_types }).into() } }
10 impl ::capnp::traits::Owned for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; }
11 impl ::capnp::traits::OwnedStruct for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; }
12 impl ::capnp::traits::Pipelined for Owned { type Pipeline = Pipeline; }
13
14 pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a> }
15 impl <'a,> ::core::marker::Copy for Reader<'a,> {}
16 impl <'a,> ::core::clone::Clone for Reader<'a,> {
17 fn clone(&self) -> Self { *self }
18 }
19
20 impl <'a,> ::capnp::traits::HasTypeId for Reader<'a,> {
21 const TYPE_ID: u64 = _private::TYPE_ID;
22 }
23 impl <'a,> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a,> {
24 fn from(reader: ::capnp::private::layout::StructReader<'a>) -> Self {
25 Self { reader, }
26 }
27 }
28
29 impl <'a,> ::core::convert::From<Reader<'a,>> for ::capnp::dynamic_value::Reader<'a> {
30 fn from(reader: Reader<'a,>) -> Self {
31 Self::Struct(::capnp::dynamic_struct::Reader::new(reader.reader, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>})))
32 }
33 }
34
35 impl <'a,> ::core::fmt::Debug for Reader<'a,> {
36 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::result::Result<(), ::core::fmt::Error> {
37 core::fmt::Debug::fmt(&::core::convert::Into::<::capnp::dynamic_value::Reader<'_>>::into(*self), f)
38 }
39 }
40
41 impl <'a,> ::capnp::traits::FromPointerReader<'a> for Reader<'a,> {
42 fn get_from_pointer(reader: &::capnp::private::layout::PointerReader<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result<Self> {
43 ::core::result::Result::Ok(reader.get_struct(default)?.into())
44 }
45 }
46
47 impl <'a,> ::capnp::traits::IntoInternalStructReader<'a> for Reader<'a,> {
48 fn into_internal_struct_reader(self) -> ::capnp::private::layout::StructReader<'a> {
49 self.reader
50 }
51 }
52
53 impl <'a,> ::capnp::traits::Imbue<'a> for Reader<'a,> {
54 fn imbue(&mut self, cap_table: &'a ::capnp::private::layout::CapTable) {
55 self.reader.imbue(::capnp::private::layout::CapTableReader::Plain(cap_table))
56 }
57 }
58
59 impl <'a,> Reader<'a,> {
60 pub fn reborrow(&self) -> Reader<'_,> {
61 Self { .. *self }
62 }
63
64 pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> {
65 self.reader.total_size()
66 }
67 #[inline]
68 pub fn get_next_wal_id(self) -> u64 {
69 self.reader.get_data_field::<u64>(0)
70 }
71 #[inline]
72 pub fn get_partitions(self) -> ::capnp::Result<::capnp::struct_list::Reader<'a,crate::dbmeta_capnp::partition_metadata::Owned>> {
73 ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None)
74 }
75 #[inline]
76 pub fn has_partitions(&self) -> bool {
77 !self.reader.get_pointer_field(0).is_null()
78 }
79 #[inline]
80 pub fn get_strings(self) -> ::capnp::Result<::capnp::text_list::Reader<'a>> {
81 ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(1), ::core::option::Option::None)
82 }
83 #[inline]
84 pub fn has_strings(&self) -> bool {
85 !self.reader.get_pointer_field(1).is_null()
86 }
87 #[inline]
88 pub fn get_compressed_strings(self) -> ::capnp::Result<::capnp::data::Reader<'a>> {
89 ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(2), ::core::option::Option::None)
90 }
91 #[inline]
92 pub fn has_compressed_strings(&self) -> bool {
93 !self.reader.get_pointer_field(2).is_null()
94 }
95 #[inline]
96 pub fn get_lengths_compressed_strings(self) -> ::capnp::Result<::capnp::primitive_list::Reader<'a,u16>> {
97 ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(3), ::core::option::Option::None)
98 }
99 #[inline]
100 pub fn has_lengths_compressed_strings(&self) -> bool {
101 !self.reader.get_pointer_field(3).is_null()
102 }
103 }
104
105 pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> }
106 impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> {
107 const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 1, pointers: 4 };
108 }
109 impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> {
110 const TYPE_ID: u64 = _private::TYPE_ID;
111 }
112 impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> {
113 fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self {
114 Self { builder, }
115 }
116 }
117
118 impl <'a,> ::core::convert::From<Builder<'a,>> for ::capnp::dynamic_value::Builder<'a> {
119 fn from(builder: Builder<'a,>) -> Self {
120 Self::Struct(::capnp::dynamic_struct::Builder::new(builder.builder, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>})))
121 }
122 }
123
124 impl <'a,> ::capnp::traits::ImbueMut<'a> for Builder<'a,> {
125 fn imbue_mut(&mut self, cap_table: &'a mut ::capnp::private::layout::CapTable) {
126 self.builder.imbue(::capnp::private::layout::CapTableBuilder::Plain(cap_table))
127 }
128 }
129
130 impl <'a,> ::capnp::traits::FromPointerBuilder<'a> for Builder<'a,> {
131 fn init_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, _size: u32) -> Self {
132 builder.init_struct(<Self as ::capnp::traits::HasStructSize>::STRUCT_SIZE).into()
133 }
134 fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result<Self> {
135 ::core::result::Result::Ok(builder.get_struct(<Self as ::capnp::traits::HasStructSize>::STRUCT_SIZE, default)?.into())
136 }
137 }
138
139 impl <'a,> ::capnp::traits::SetterInput<Owned<>> for Reader<'a,> {
140 fn set_pointer_builder(mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, canonicalize: bool) -> ::capnp::Result<()> { pointer.set_struct(&value.reader, canonicalize) }
141 }
142
143 impl <'a,> Builder<'a,> {
144 pub fn into_reader(self) -> Reader<'a,> {
145 self.builder.into_reader().into()
146 }
147 pub fn reborrow(&mut self) -> Builder<'_,> {
148 Builder { builder: self.builder.reborrow() }
149 }
150 pub fn reborrow_as_reader(&self) -> Reader<'_,> {
151 self.builder.as_reader().into()
152 }
153
154 pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> {
155 self.builder.as_reader().total_size()
156 }
157 #[inline]
158 pub fn get_next_wal_id(self) -> u64 {
159 self.builder.get_data_field::<u64>(0)
160 }
161 #[inline]
162 pub fn set_next_wal_id(&mut self, value: u64) {
163 self.builder.set_data_field::<u64>(0, value);
164 }
165 #[inline]
166 pub fn get_partitions(self) -> ::capnp::Result<::capnp::struct_list::Builder<'a,crate::dbmeta_capnp::partition_metadata::Owned>> {
167 ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None)
168 }
169 #[inline]
170 pub fn set_partitions(&mut self, value: ::capnp::struct_list::Reader<'_,crate::dbmeta_capnp::partition_metadata::Owned>) -> ::capnp::Result<()> {
171 ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(0), value, false)
172 }
173 #[inline]
174 pub fn init_partitions(self, size: u32) -> ::capnp::struct_list::Builder<'a,crate::dbmeta_capnp::partition_metadata::Owned> {
175 ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(0), size)
176 }
177 #[inline]
178 pub fn has_partitions(&self) -> bool {
179 !self.builder.is_pointer_field_null(0)
180 }
181 #[inline]
182 pub fn get_strings(self) -> ::capnp::Result<::capnp::text_list::Builder<'a>> {
183 ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(1), ::core::option::Option::None)
184 }
185 #[inline]
186 pub fn set_strings(&mut self, value: impl ::capnp::traits::SetterInput<::capnp::text_list::Owned>) -> ::capnp::Result<()> {
187 ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(1), value, false)
188 }
189 #[inline]
190 pub fn init_strings(self, size: u32) -> ::capnp::text_list::Builder<'a> {
191 ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(1), size)
192 }
193 #[inline]
194 pub fn has_strings(&self) -> bool {
195 !self.builder.is_pointer_field_null(1)
196 }
197 #[inline]
198 pub fn get_compressed_strings(self) -> ::capnp::Result<::capnp::data::Builder<'a>> {
199 ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(2), ::core::option::Option::None)
200 }
201 #[inline]
202 pub fn set_compressed_strings(&mut self, value: ::capnp::data::Reader<'_>) {
203 self.builder.reborrow().get_pointer_field(2).set_data(value);
204 }
205 #[inline]
206 pub fn init_compressed_strings(self, size: u32) -> ::capnp::data::Builder<'a> {
207 self.builder.get_pointer_field(2).init_data(size)
208 }
209 #[inline]
210 pub fn has_compressed_strings(&self) -> bool {
211 !self.builder.is_pointer_field_null(2)
212 }
213 #[inline]
214 pub fn get_lengths_compressed_strings(self) -> ::capnp::Result<::capnp::primitive_list::Builder<'a,u16>> {
215 ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(3), ::core::option::Option::None)
216 }
217 #[inline]
218 pub fn set_lengths_compressed_strings(&mut self, value: impl ::capnp::traits::SetterInput<::capnp::primitive_list::Owned<u16>>) -> ::capnp::Result<()> {
219 ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(3), value, false)
220 }
221 #[inline]
222 pub fn init_lengths_compressed_strings(self, size: u32) -> ::capnp::primitive_list::Builder<'a,u16> {
223 ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(3), size)
224 }
225 #[inline]
226 pub fn has_lengths_compressed_strings(&self) -> bool {
227 !self.builder.is_pointer_field_null(3)
228 }
229 }
230
231 pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline }
232 impl ::capnp::capability::FromTypelessPipeline for Pipeline {
233 fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self {
234 Self { _typeless: typeless, }
235 }
236 }
237 impl Pipeline {
238 }
239 mod _private {
240 pub static ENCODED_NODE: [::capnp::Word; 111] = [
241 ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0),
242 ::capnp::word(134, 233, 91, 102, 237, 22, 116, 146),
243 ::capnp::word(13, 0, 0, 0, 1, 0, 1, 0),
244 ::capnp::word(245, 46, 142, 94, 29, 184, 169, 175),
245 ::capnp::word(4, 0, 7, 0, 0, 0, 0, 0),
246 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
247 ::capnp::word(21, 0, 0, 0, 162, 0, 0, 0),
248 ::capnp::word(29, 0, 0, 0, 7, 0, 0, 0),
249 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
250 ::capnp::word(25, 0, 0, 0, 31, 1, 0, 0),
251 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
252 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
253 ::capnp::word(100, 98, 109, 101, 116, 97, 46, 99),
254 ::capnp::word(97, 112, 110, 112, 58, 68, 66, 77),
255 ::capnp::word(101, 116, 97, 0, 0, 0, 0, 0),
256 ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0),
257 ::capnp::word(20, 0, 0, 0, 3, 0, 4, 0),
258 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
259 ::capnp::word(0, 0, 1, 0, 0, 0, 0, 0),
260 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
261 ::capnp::word(125, 0, 0, 0, 82, 0, 0, 0),
262 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
263 ::capnp::word(124, 0, 0, 0, 3, 0, 1, 0),
264 ::capnp::word(136, 0, 0, 0, 2, 0, 1, 0),
265 ::capnp::word(1, 0, 0, 0, 0, 0, 0, 0),
266 ::capnp::word(0, 0, 1, 0, 1, 0, 0, 0),
267 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
268 ::capnp::word(133, 0, 0, 0, 90, 0, 0, 0),
269 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
270 ::capnp::word(132, 0, 0, 0, 3, 0, 1, 0),
271 ::capnp::word(160, 0, 0, 0, 2, 0, 1, 0),
272 ::capnp::word(2, 0, 0, 0, 1, 0, 0, 0),
273 ::capnp::word(0, 0, 1, 0, 2, 0, 0, 0),
274 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
275 ::capnp::word(157, 0, 0, 0, 66, 0, 0, 0),
276 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
277 ::capnp::word(152, 0, 0, 0, 3, 0, 1, 0),
278 ::capnp::word(180, 0, 0, 0, 2, 0, 1, 0),
279 ::capnp::word(3, 0, 0, 0, 2, 0, 0, 0),
280 ::capnp::word(0, 0, 1, 0, 3, 0, 0, 0),
281 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
282 ::capnp::word(177, 0, 0, 0, 146, 0, 0, 0),
283 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
284 ::capnp::word(180, 0, 0, 0, 3, 0, 1, 0),
285 ::capnp::word(192, 0, 0, 0, 2, 0, 1, 0),
286 ::capnp::word(4, 0, 0, 0, 3, 0, 0, 0),
287 ::capnp::word(0, 0, 1, 0, 4, 0, 0, 0),
288 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
289 ::capnp::word(189, 0, 0, 0, 202, 0, 0, 0),
290 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
291 ::capnp::word(196, 0, 0, 0, 3, 0, 1, 0),
292 ::capnp::word(224, 0, 0, 0, 2, 0, 1, 0),
293 ::capnp::word(110, 101, 120, 116, 87, 97, 108, 73),
294 ::capnp::word(100, 0, 0, 0, 0, 0, 0, 0),
295 ::capnp::word(9, 0, 0, 0, 0, 0, 0, 0),
296 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
297 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
298 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
299 ::capnp::word(9, 0, 0, 0, 0, 0, 0, 0),
300 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
301 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
302 ::capnp::word(112, 97, 114, 116, 105, 116, 105, 111),
303 ::capnp::word(110, 115, 0, 0, 0, 0, 0, 0),
304 ::capnp::word(14, 0, 0, 0, 0, 0, 0, 0),
305 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
306 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
307 ::capnp::word(0, 0, 0, 0, 3, 0, 1, 0),
308 ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0),
309 ::capnp::word(253, 140, 231, 45, 21, 214, 36, 131),
310 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
311 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
312 ::capnp::word(14, 0, 0, 0, 0, 0, 0, 0),
313 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
314 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
315 ::capnp::word(115, 116, 114, 105, 110, 103, 115, 0),
316 ::capnp::word(14, 0, 0, 0, 0, 0, 0, 0),
317 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
318 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
319 ::capnp::word(0, 0, 0, 0, 3, 0, 1, 0),
320 ::capnp::word(12, 0, 0, 0, 0, 0, 0, 0),
321 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
322 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
323 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
324 ::capnp::word(14, 0, 0, 0, 0, 0, 0, 0),
325 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
326 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
327 ::capnp::word(99, 111, 109, 112, 114, 101, 115, 115),
328 ::capnp::word(101, 100, 83, 116, 114, 105, 110, 103),
329 ::capnp::word(115, 0, 0, 0, 0, 0, 0, 0),
330 ::capnp::word(13, 0, 0, 0, 0, 0, 0, 0),
331 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
332 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
333 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
334 ::capnp::word(13, 0, 0, 0, 0, 0, 0, 0),
335 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
336 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
337 ::capnp::word(108, 101, 110, 103, 116, 104, 115, 67),
338 ::capnp::word(111, 109, 112, 114, 101, 115, 115, 101),
339 ::capnp::word(100, 83, 116, 114, 105, 110, 103, 115),
340 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
341 ::capnp::word(14, 0, 0, 0, 0, 0, 0, 0),
342 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
343 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
344 ::capnp::word(0, 0, 0, 0, 3, 0, 1, 0),
345 ::capnp::word(7, 0, 0, 0, 0, 0, 0, 0),
346 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
347 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
348 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
349 ::capnp::word(14, 0, 0, 0, 0, 0, 0, 0),
350 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
351 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
352 ];
353 pub fn get_field_types(index: u16) -> ::capnp::introspect::Type {
354 match index {
355 0 => <u64 as ::capnp::introspect::Introspect>::introspect(),
356 1 => <::capnp::struct_list::Owned<crate::dbmeta_capnp::partition_metadata::Owned> as ::capnp::introspect::Introspect>::introspect(),
357 2 => <::capnp::text_list::Owned as ::capnp::introspect::Introspect>::introspect(),
358 3 => <::capnp::data::Owned as ::capnp::introspect::Introspect>::introspect(),
359 4 => <::capnp::primitive_list::Owned<u16> as ::capnp::introspect::Introspect>::introspect(),
360 _ => panic!("invalid field index {}", index),
361 }
362 }
363 pub fn get_annotation_types(child_index: Option<u16>, index: u32) -> ::capnp::introspect::Type {
364 panic!("invalid annotation indices ({:?}, {}) ", child_index, index)
365 }
366 pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema = ::capnp::introspect::RawStructSchema {
367 encoded_node: &ENCODED_NODE,
368 nonunion_members: NONUNION_MEMBERS,
369 members_by_discriminant: MEMBERS_BY_DISCRIMINANT,
370 members_by_name: MEMBERS_BY_NAME,
371 };
372 pub static NONUNION_MEMBERS : &[u16] = &[0,1,2,3,4];
373 pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[];
374 pub static MEMBERS_BY_NAME : &[u16] = &[3,4,0,1,2];
375 pub const TYPE_ID: u64 = 0x9274_16ed_665b_e986;
376 }
377}
378
379pub mod partition_metadata {
380 #[derive(Copy, Clone)]
381 pub struct Owned(());
382 impl ::capnp::introspect::Introspect for Owned { fn introspect() -> ::capnp::introspect::Type { ::capnp::introspect::TypeVariant::Struct(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types, annotation_types: _private::get_annotation_types }).into() } }
383 impl ::capnp::traits::Owned for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; }
384 impl ::capnp::traits::OwnedStruct for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; }
385 impl ::capnp::traits::Pipelined for Owned { type Pipeline = Pipeline; }
386
387 pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a> }
388 impl <'a,> ::core::marker::Copy for Reader<'a,> {}
389 impl <'a,> ::core::clone::Clone for Reader<'a,> {
390 fn clone(&self) -> Self { *self }
391 }
392
393 impl <'a,> ::capnp::traits::HasTypeId for Reader<'a,> {
394 const TYPE_ID: u64 = _private::TYPE_ID;
395 }
396 impl <'a,> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a,> {
397 fn from(reader: ::capnp::private::layout::StructReader<'a>) -> Self {
398 Self { reader, }
399 }
400 }
401
402 impl <'a,> ::core::convert::From<Reader<'a,>> for ::capnp::dynamic_value::Reader<'a> {
403 fn from(reader: Reader<'a,>) -> Self {
404 Self::Struct(::capnp::dynamic_struct::Reader::new(reader.reader, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>})))
405 }
406 }
407
408 impl <'a,> ::core::fmt::Debug for Reader<'a,> {
409 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::result::Result<(), ::core::fmt::Error> {
410 core::fmt::Debug::fmt(&::core::convert::Into::<::capnp::dynamic_value::Reader<'_>>::into(*self), f)
411 }
412 }
413
414 impl <'a,> ::capnp::traits::FromPointerReader<'a> for Reader<'a,> {
415 fn get_from_pointer(reader: &::capnp::private::layout::PointerReader<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result<Self> {
416 ::core::result::Result::Ok(reader.get_struct(default)?.into())
417 }
418 }
419
420 impl <'a,> ::capnp::traits::IntoInternalStructReader<'a> for Reader<'a,> {
421 fn into_internal_struct_reader(self) -> ::capnp::private::layout::StructReader<'a> {
422 self.reader
423 }
424 }
425
426 impl <'a,> ::capnp::traits::Imbue<'a> for Reader<'a,> {
427 fn imbue(&mut self, cap_table: &'a ::capnp::private::layout::CapTable) {
428 self.reader.imbue(::capnp::private::layout::CapTableReader::Plain(cap_table))
429 }
430 }
431
432 impl <'a,> Reader<'a,> {
433 pub fn reborrow(&self) -> Reader<'_,> {
434 Self { .. *self }
435 }
436
437 pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> {
438 self.reader.total_size()
439 }
440 #[inline]
441 pub fn get_id(self) -> u64 {
442 self.reader.get_data_field::<u64>(0)
443 }
444 #[inline]
445 pub fn get_tablename(self) -> ::capnp::Result<::capnp::text::Reader<'a>> {
446 ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None)
447 }
448 #[inline]
449 pub fn has_tablename(&self) -> bool {
450 !self.reader.get_pointer_field(0).is_null()
451 }
452 #[inline]
453 pub fn get_offset(self) -> u64 {
454 self.reader.get_data_field::<u64>(1)
455 }
456 #[inline]
457 pub fn get_len(self) -> u64 {
458 self.reader.get_data_field::<u64>(2)
459 }
460 #[inline]
461 pub fn get_subpartitions(self) -> ::capnp::Result<::capnp::struct_list::Reader<'a,crate::dbmeta_capnp::subpartition_metadata::Owned>> {
462 ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(1), ::core::option::Option::None)
463 }
464 #[inline]
465 pub fn has_subpartitions(&self) -> bool {
466 !self.reader.get_pointer_field(1).is_null()
467 }
468 }
469
470 pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> }
471 impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> {
472 const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 3, pointers: 2 };
473 }
474 impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> {
475 const TYPE_ID: u64 = _private::TYPE_ID;
476 }
477 impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> {
478 fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self {
479 Self { builder, }
480 }
481 }
482
483 impl <'a,> ::core::convert::From<Builder<'a,>> for ::capnp::dynamic_value::Builder<'a> {
484 fn from(builder: Builder<'a,>) -> Self {
485 Self::Struct(::capnp::dynamic_struct::Builder::new(builder.builder, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>})))
486 }
487 }
488
489 impl <'a,> ::capnp::traits::ImbueMut<'a> for Builder<'a,> {
490 fn imbue_mut(&mut self, cap_table: &'a mut ::capnp::private::layout::CapTable) {
491 self.builder.imbue(::capnp::private::layout::CapTableBuilder::Plain(cap_table))
492 }
493 }
494
495 impl <'a,> ::capnp::traits::FromPointerBuilder<'a> for Builder<'a,> {
496 fn init_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, _size: u32) -> Self {
497 builder.init_struct(<Self as ::capnp::traits::HasStructSize>::STRUCT_SIZE).into()
498 }
499 fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result<Self> {
500 ::core::result::Result::Ok(builder.get_struct(<Self as ::capnp::traits::HasStructSize>::STRUCT_SIZE, default)?.into())
501 }
502 }
503
504 impl <'a,> ::capnp::traits::SetterInput<Owned<>> for Reader<'a,> {
505 fn set_pointer_builder(mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, canonicalize: bool) -> ::capnp::Result<()> { pointer.set_struct(&value.reader, canonicalize) }
506 }
507
508 impl <'a,> Builder<'a,> {
509 pub fn into_reader(self) -> Reader<'a,> {
510 self.builder.into_reader().into()
511 }
512 pub fn reborrow(&mut self) -> Builder<'_,> {
513 Builder { builder: self.builder.reborrow() }
514 }
515 pub fn reborrow_as_reader(&self) -> Reader<'_,> {
516 self.builder.as_reader().into()
517 }
518
519 pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> {
520 self.builder.as_reader().total_size()
521 }
522 #[inline]
523 pub fn get_id(self) -> u64 {
524 self.builder.get_data_field::<u64>(0)
525 }
526 #[inline]
527 pub fn set_id(&mut self, value: u64) {
528 self.builder.set_data_field::<u64>(0, value);
529 }
530 #[inline]
531 pub fn get_tablename(self) -> ::capnp::Result<::capnp::text::Builder<'a>> {
532 ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None)
533 }
534 #[inline]
535 pub fn set_tablename(&mut self, value: impl ::capnp::traits::SetterInput<::capnp::text::Owned>) {
536 ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(0), value, false).unwrap()
537 }
538 #[inline]
539 pub fn init_tablename(self, size: u32) -> ::capnp::text::Builder<'a> {
540 self.builder.get_pointer_field(0).init_text(size)
541 }
542 #[inline]
543 pub fn has_tablename(&self) -> bool {
544 !self.builder.is_pointer_field_null(0)
545 }
546 #[inline]
547 pub fn get_offset(self) -> u64 {
548 self.builder.get_data_field::<u64>(1)
549 }
550 #[inline]
551 pub fn set_offset(&mut self, value: u64) {
552 self.builder.set_data_field::<u64>(1, value);
553 }
554 #[inline]
555 pub fn get_len(self) -> u64 {
556 self.builder.get_data_field::<u64>(2)
557 }
558 #[inline]
559 pub fn set_len(&mut self, value: u64) {
560 self.builder.set_data_field::<u64>(2, value);
561 }
562 #[inline]
563 pub fn get_subpartitions(self) -> ::capnp::Result<::capnp::struct_list::Builder<'a,crate::dbmeta_capnp::subpartition_metadata::Owned>> {
564 ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(1), ::core::option::Option::None)
565 }
566 #[inline]
567 pub fn set_subpartitions(&mut self, value: ::capnp::struct_list::Reader<'_,crate::dbmeta_capnp::subpartition_metadata::Owned>) -> ::capnp::Result<()> {
568 ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(1), value, false)
569 }
570 #[inline]
571 pub fn init_subpartitions(self, size: u32) -> ::capnp::struct_list::Builder<'a,crate::dbmeta_capnp::subpartition_metadata::Owned> {
572 ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(1), size)
573 }
574 #[inline]
575 pub fn has_subpartitions(&self) -> bool {
576 !self.builder.is_pointer_field_null(1)
577 }
578 }
579
580 pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline }
581 impl ::capnp::capability::FromTypelessPipeline for Pipeline {
582 fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self {
583 Self { _typeless: typeless, }
584 }
585 }
586 impl Pipeline {
587 }
588 mod _private {
589 pub static ENCODED_NODE: [::capnp::Word; 99] = [
590 ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0),
591 ::capnp::word(253, 140, 231, 45, 21, 214, 36, 131),
592 ::capnp::word(13, 0, 0, 0, 1, 0, 3, 0),
593 ::capnp::word(245, 46, 142, 94, 29, 184, 169, 175),
594 ::capnp::word(2, 0, 7, 0, 0, 0, 0, 0),
595 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
596 ::capnp::word(21, 0, 0, 0, 250, 0, 0, 0),
597 ::capnp::word(33, 0, 0, 0, 7, 0, 0, 0),
598 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
599 ::capnp::word(29, 0, 0, 0, 31, 1, 0, 0),
600 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
601 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
602 ::capnp::word(100, 98, 109, 101, 116, 97, 46, 99),
603 ::capnp::word(97, 112, 110, 112, 58, 80, 97, 114),
604 ::capnp::word(116, 105, 116, 105, 111, 110, 77, 101),
605 ::capnp::word(116, 97, 100, 97, 116, 97, 0, 0),
606 ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0),
607 ::capnp::word(20, 0, 0, 0, 3, 0, 4, 0),
608 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
609 ::capnp::word(0, 0, 1, 0, 0, 0, 0, 0),
610 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
611 ::capnp::word(125, 0, 0, 0, 26, 0, 0, 0),
612 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
613 ::capnp::word(120, 0, 0, 0, 3, 0, 1, 0),
614 ::capnp::word(132, 0, 0, 0, 2, 0, 1, 0),
615 ::capnp::word(1, 0, 0, 0, 0, 0, 0, 0),
616 ::capnp::word(0, 0, 1, 0, 1, 0, 0, 0),
617 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
618 ::capnp::word(129, 0, 0, 0, 82, 0, 0, 0),
619 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
620 ::capnp::word(128, 0, 0, 0, 3, 0, 1, 0),
621 ::capnp::word(140, 0, 0, 0, 2, 0, 1, 0),
622 ::capnp::word(2, 0, 0, 0, 1, 0, 0, 0),
623 ::capnp::word(0, 0, 1, 0, 2, 0, 0, 0),
624 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
625 ::capnp::word(137, 0, 0, 0, 58, 0, 0, 0),
626 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
627 ::capnp::word(132, 0, 0, 0, 3, 0, 1, 0),
628 ::capnp::word(144, 0, 0, 0, 2, 0, 1, 0),
629 ::capnp::word(3, 0, 0, 0, 2, 0, 0, 0),
630 ::capnp::word(0, 0, 1, 0, 3, 0, 0, 0),
631 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
632 ::capnp::word(141, 0, 0, 0, 34, 0, 0, 0),
633 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
634 ::capnp::word(136, 0, 0, 0, 3, 0, 1, 0),
635 ::capnp::word(148, 0, 0, 0, 2, 0, 1, 0),
636 ::capnp::word(4, 0, 0, 0, 1, 0, 0, 0),
637 ::capnp::word(0, 0, 1, 0, 4, 0, 0, 0),
638 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
639 ::capnp::word(145, 0, 0, 0, 114, 0, 0, 0),
640 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
641 ::capnp::word(144, 0, 0, 0, 3, 0, 1, 0),
642 ::capnp::word(172, 0, 0, 0, 2, 0, 1, 0),
643 ::capnp::word(105, 100, 0, 0, 0, 0, 0, 0),
644 ::capnp::word(9, 0, 0, 0, 0, 0, 0, 0),
645 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
646 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
647 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
648 ::capnp::word(9, 0, 0, 0, 0, 0, 0, 0),
649 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
650 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
651 ::capnp::word(116, 97, 98, 108, 101, 110, 97, 109),
652 ::capnp::word(101, 0, 0, 0, 0, 0, 0, 0),
653 ::capnp::word(12, 0, 0, 0, 0, 0, 0, 0),
654 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
655 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
656 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
657 ::capnp::word(12, 0, 0, 0, 0, 0, 0, 0),
658 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
659 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
660 ::capnp::word(111, 102, 102, 115, 101, 116, 0, 0),
661 ::capnp::word(9, 0, 0, 0, 0, 0, 0, 0),
662 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
663 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
664 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
665 ::capnp::word(9, 0, 0, 0, 0, 0, 0, 0),
666 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
667 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
668 ::capnp::word(108, 101, 110, 0, 0, 0, 0, 0),
669 ::capnp::word(9, 0, 0, 0, 0, 0, 0, 0),
670 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
671 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
672 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
673 ::capnp::word(9, 0, 0, 0, 0, 0, 0, 0),
674 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
675 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
676 ::capnp::word(115, 117, 98, 112, 97, 114, 116, 105),
677 ::capnp::word(116, 105, 111, 110, 115, 0, 0, 0),
678 ::capnp::word(14, 0, 0, 0, 0, 0, 0, 0),
679 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
680 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
681 ::capnp::word(0, 0, 0, 0, 3, 0, 1, 0),
682 ::capnp::word(16, 0, 0, 0, 0, 0, 0, 0),
683 ::capnp::word(48, 51, 123, 36, 100, 192, 248, 192),
684 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
685 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
686 ::capnp::word(14, 0, 0, 0, 0, 0, 0, 0),
687 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
688 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
689 ];
690 pub fn get_field_types(index: u16) -> ::capnp::introspect::Type {
691 match index {
692 0 => <u64 as ::capnp::introspect::Introspect>::introspect(),
693 1 => <::capnp::text::Owned as ::capnp::introspect::Introspect>::introspect(),
694 2 => <u64 as ::capnp::introspect::Introspect>::introspect(),
695 3 => <u64 as ::capnp::introspect::Introspect>::introspect(),
696 4 => <::capnp::struct_list::Owned<crate::dbmeta_capnp::subpartition_metadata::Owned> as ::capnp::introspect::Introspect>::introspect(),
697 _ => panic!("invalid field index {}", index),
698 }
699 }
700 pub fn get_annotation_types(child_index: Option<u16>, index: u32) -> ::capnp::introspect::Type {
701 panic!("invalid annotation indices ({:?}, {}) ", child_index, index)
702 }
703 pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema = ::capnp::introspect::RawStructSchema {
704 encoded_node: &ENCODED_NODE,
705 nonunion_members: NONUNION_MEMBERS,
706 members_by_discriminant: MEMBERS_BY_DISCRIMINANT,
707 members_by_name: MEMBERS_BY_NAME,
708 };
709 pub static NONUNION_MEMBERS : &[u16] = &[0,1,2,3,4];
710 pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[];
711 pub static MEMBERS_BY_NAME : &[u16] = &[0,3,2,4,1];
712 pub const TYPE_ID: u64 = 0x8324_d615_2de7_8cfd;
713 }
714}
715
716pub mod subpartition_metadata {
717 #[derive(Copy, Clone)]
718 pub struct Owned(());
719 impl ::capnp::introspect::Introspect for Owned { fn introspect() -> ::capnp::introspect::Type { ::capnp::introspect::TypeVariant::Struct(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types, annotation_types: _private::get_annotation_types }).into() } }
720 impl ::capnp::traits::Owned for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; }
721 impl ::capnp::traits::OwnedStruct for Owned { type Reader<'a> = Reader<'a>; type Builder<'a> = Builder<'a>; }
722 impl ::capnp::traits::Pipelined for Owned { type Pipeline = Pipeline; }
723
724 pub struct Reader<'a> { reader: ::capnp::private::layout::StructReader<'a> }
725 impl <'a,> ::core::marker::Copy for Reader<'a,> {}
726 impl <'a,> ::core::clone::Clone for Reader<'a,> {
727 fn clone(&self) -> Self { *self }
728 }
729
730 impl <'a,> ::capnp::traits::HasTypeId for Reader<'a,> {
731 const TYPE_ID: u64 = _private::TYPE_ID;
732 }
733 impl <'a,> ::core::convert::From<::capnp::private::layout::StructReader<'a>> for Reader<'a,> {
734 fn from(reader: ::capnp::private::layout::StructReader<'a>) -> Self {
735 Self { reader, }
736 }
737 }
738
739 impl <'a,> ::core::convert::From<Reader<'a,>> for ::capnp::dynamic_value::Reader<'a> {
740 fn from(reader: Reader<'a,>) -> Self {
741 Self::Struct(::capnp::dynamic_struct::Reader::new(reader.reader, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>})))
742 }
743 }
744
745 impl <'a,> ::core::fmt::Debug for Reader<'a,> {
746 fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::result::Result<(), ::core::fmt::Error> {
747 core::fmt::Debug::fmt(&::core::convert::Into::<::capnp::dynamic_value::Reader<'_>>::into(*self), f)
748 }
749 }
750
751 impl <'a,> ::capnp::traits::FromPointerReader<'a> for Reader<'a,> {
752 fn get_from_pointer(reader: &::capnp::private::layout::PointerReader<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result<Self> {
753 ::core::result::Result::Ok(reader.get_struct(default)?.into())
754 }
755 }
756
757 impl <'a,> ::capnp::traits::IntoInternalStructReader<'a> for Reader<'a,> {
758 fn into_internal_struct_reader(self) -> ::capnp::private::layout::StructReader<'a> {
759 self.reader
760 }
761 }
762
763 impl <'a,> ::capnp::traits::Imbue<'a> for Reader<'a,> {
764 fn imbue(&mut self, cap_table: &'a ::capnp::private::layout::CapTable) {
765 self.reader.imbue(::capnp::private::layout::CapTableReader::Plain(cap_table))
766 }
767 }
768
769 impl <'a,> Reader<'a,> {
770 pub fn reborrow(&self) -> Reader<'_,> {
771 Self { .. *self }
772 }
773
774 pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> {
775 self.reader.total_size()
776 }
777 #[inline]
778 pub fn get_size_bytes(self) -> u64 {
779 self.reader.get_data_field::<u64>(0)
780 }
781 #[inline]
782 pub fn get_subpartition_key(self) -> ::capnp::Result<::capnp::text::Reader<'a>> {
783 ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(0), ::core::option::Option::None)
784 }
785 #[inline]
786 pub fn has_subpartition_key(&self) -> bool {
787 !self.reader.get_pointer_field(0).is_null()
788 }
789 #[inline]
790 pub fn get_columns(self) -> ::capnp::Result<::capnp::text_list::Reader<'a>> {
791 ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(1), ::core::option::Option::None)
792 }
793 #[inline]
794 pub fn has_columns(&self) -> bool {
795 !self.reader.get_pointer_field(1).is_null()
796 }
797 #[inline]
798 pub fn get_interned_columns(self) -> ::capnp::Result<::capnp::primitive_list::Reader<'a,u64>> {
799 ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(2), ::core::option::Option::None)
800 }
801 #[inline]
802 pub fn has_interned_columns(&self) -> bool {
803 !self.reader.get_pointer_field(2).is_null()
804 }
805 #[inline]
806 pub fn get_compressed_interned_columns(self) -> ::capnp::Result<::capnp::data::Reader<'a>> {
807 ::capnp::traits::FromPointerReader::get_from_pointer(&self.reader.get_pointer_field(3), ::core::option::Option::None)
808 }
809 #[inline]
810 pub fn has_compressed_interned_columns(&self) -> bool {
811 !self.reader.get_pointer_field(3).is_null()
812 }
813 }
814
815 pub struct Builder<'a> { builder: ::capnp::private::layout::StructBuilder<'a> }
816 impl <'a,> ::capnp::traits::HasStructSize for Builder<'a,> {
817 const STRUCT_SIZE: ::capnp::private::layout::StructSize = ::capnp::private::layout::StructSize { data: 1, pointers: 4 };
818 }
819 impl <'a,> ::capnp::traits::HasTypeId for Builder<'a,> {
820 const TYPE_ID: u64 = _private::TYPE_ID;
821 }
822 impl <'a,> ::core::convert::From<::capnp::private::layout::StructBuilder<'a>> for Builder<'a,> {
823 fn from(builder: ::capnp::private::layout::StructBuilder<'a>) -> Self {
824 Self { builder, }
825 }
826 }
827
828 impl <'a,> ::core::convert::From<Builder<'a,>> for ::capnp::dynamic_value::Builder<'a> {
829 fn from(builder: Builder<'a,>) -> Self {
830 Self::Struct(::capnp::dynamic_struct::Builder::new(builder.builder, ::capnp::schema::StructSchema::new(::capnp::introspect::RawBrandedStructSchema { generic: &_private::RAW_SCHEMA, field_types: _private::get_field_types::<>, annotation_types: _private::get_annotation_types::<>})))
831 }
832 }
833
834 impl <'a,> ::capnp::traits::ImbueMut<'a> for Builder<'a,> {
835 fn imbue_mut(&mut self, cap_table: &'a mut ::capnp::private::layout::CapTable) {
836 self.builder.imbue(::capnp::private::layout::CapTableBuilder::Plain(cap_table))
837 }
838 }
839
840 impl <'a,> ::capnp::traits::FromPointerBuilder<'a> for Builder<'a,> {
841 fn init_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, _size: u32) -> Self {
842 builder.init_struct(<Self as ::capnp::traits::HasStructSize>::STRUCT_SIZE).into()
843 }
844 fn get_from_pointer(builder: ::capnp::private::layout::PointerBuilder<'a>, default: ::core::option::Option<&'a [::capnp::Word]>) -> ::capnp::Result<Self> {
845 ::core::result::Result::Ok(builder.get_struct(<Self as ::capnp::traits::HasStructSize>::STRUCT_SIZE, default)?.into())
846 }
847 }
848
849 impl <'a,> ::capnp::traits::SetterInput<Owned<>> for Reader<'a,> {
850 fn set_pointer_builder(mut pointer: ::capnp::private::layout::PointerBuilder<'_>, value: Self, canonicalize: bool) -> ::capnp::Result<()> { pointer.set_struct(&value.reader, canonicalize) }
851 }
852
853 impl <'a,> Builder<'a,> {
854 pub fn into_reader(self) -> Reader<'a,> {
855 self.builder.into_reader().into()
856 }
857 pub fn reborrow(&mut self) -> Builder<'_,> {
858 Builder { builder: self.builder.reborrow() }
859 }
860 pub fn reborrow_as_reader(&self) -> Reader<'_,> {
861 self.builder.as_reader().into()
862 }
863
864 pub fn total_size(&self) -> ::capnp::Result<::capnp::MessageSize> {
865 self.builder.as_reader().total_size()
866 }
867 #[inline]
868 pub fn get_size_bytes(self) -> u64 {
869 self.builder.get_data_field::<u64>(0)
870 }
871 #[inline]
872 pub fn set_size_bytes(&mut self, value: u64) {
873 self.builder.set_data_field::<u64>(0, value);
874 }
875 #[inline]
876 pub fn get_subpartition_key(self) -> ::capnp::Result<::capnp::text::Builder<'a>> {
877 ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(0), ::core::option::Option::None)
878 }
879 #[inline]
880 pub fn set_subpartition_key(&mut self, value: impl ::capnp::traits::SetterInput<::capnp::text::Owned>) {
881 ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(0), value, false).unwrap()
882 }
883 #[inline]
884 pub fn init_subpartition_key(self, size: u32) -> ::capnp::text::Builder<'a> {
885 self.builder.get_pointer_field(0).init_text(size)
886 }
887 #[inline]
888 pub fn has_subpartition_key(&self) -> bool {
889 !self.builder.is_pointer_field_null(0)
890 }
891 #[inline]
892 pub fn get_columns(self) -> ::capnp::Result<::capnp::text_list::Builder<'a>> {
893 ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(1), ::core::option::Option::None)
894 }
895 #[inline]
896 pub fn set_columns(&mut self, value: impl ::capnp::traits::SetterInput<::capnp::text_list::Owned>) -> ::capnp::Result<()> {
897 ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(1), value, false)
898 }
899 #[inline]
900 pub fn init_columns(self, size: u32) -> ::capnp::text_list::Builder<'a> {
901 ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(1), size)
902 }
903 #[inline]
904 pub fn has_columns(&self) -> bool {
905 !self.builder.is_pointer_field_null(1)
906 }
907 #[inline]
908 pub fn get_interned_columns(self) -> ::capnp::Result<::capnp::primitive_list::Builder<'a,u64>> {
909 ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(2), ::core::option::Option::None)
910 }
911 #[inline]
912 pub fn set_interned_columns(&mut self, value: impl ::capnp::traits::SetterInput<::capnp::primitive_list::Owned<u64>>) -> ::capnp::Result<()> {
913 ::capnp::traits::SetterInput::set_pointer_builder(self.builder.reborrow().get_pointer_field(2), value, false)
914 }
915 #[inline]
916 pub fn init_interned_columns(self, size: u32) -> ::capnp::primitive_list::Builder<'a,u64> {
917 ::capnp::traits::FromPointerBuilder::init_pointer(self.builder.get_pointer_field(2), size)
918 }
919 #[inline]
920 pub fn has_interned_columns(&self) -> bool {
921 !self.builder.is_pointer_field_null(2)
922 }
923 #[inline]
924 pub fn get_compressed_interned_columns(self) -> ::capnp::Result<::capnp::data::Builder<'a>> {
925 ::capnp::traits::FromPointerBuilder::get_from_pointer(self.builder.get_pointer_field(3), ::core::option::Option::None)
926 }
927 #[inline]
928 pub fn set_compressed_interned_columns(&mut self, value: ::capnp::data::Reader<'_>) {
929 self.builder.reborrow().get_pointer_field(3).set_data(value);
930 }
931 #[inline]
932 pub fn init_compressed_interned_columns(self, size: u32) -> ::capnp::data::Builder<'a> {
933 self.builder.get_pointer_field(3).init_data(size)
934 }
935 #[inline]
936 pub fn has_compressed_interned_columns(&self) -> bool {
937 !self.builder.is_pointer_field_null(3)
938 }
939 }
940
941 pub struct Pipeline { _typeless: ::capnp::any_pointer::Pipeline }
942 impl ::capnp::capability::FromTypelessPipeline for Pipeline {
943 fn new(typeless: ::capnp::any_pointer::Pipeline) -> Self {
944 Self { _typeless: typeless, }
945 }
946 }
947 impl Pipeline {
948 }
949 mod _private {
950 pub static ENCODED_NODE: [::capnp::Word; 108] = [
951 ::capnp::word(0, 0, 0, 0, 5, 0, 6, 0),
952 ::capnp::word(48, 51, 123, 36, 100, 192, 248, 192),
953 ::capnp::word(13, 0, 0, 0, 1, 0, 1, 0),
954 ::capnp::word(245, 46, 142, 94, 29, 184, 169, 175),
955 ::capnp::word(4, 0, 7, 0, 0, 0, 0, 0),
956 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
957 ::capnp::word(21, 0, 0, 0, 18, 1, 0, 0),
958 ::capnp::word(37, 0, 0, 0, 7, 0, 0, 0),
959 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
960 ::capnp::word(33, 0, 0, 0, 31, 1, 0, 0),
961 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
962 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
963 ::capnp::word(100, 98, 109, 101, 116, 97, 46, 99),
964 ::capnp::word(97, 112, 110, 112, 58, 83, 117, 98),
965 ::capnp::word(112, 97, 114, 116, 105, 116, 105, 111),
966 ::capnp::word(110, 77, 101, 116, 97, 100, 97, 116),
967 ::capnp::word(97, 0, 0, 0, 0, 0, 0, 0),
968 ::capnp::word(0, 0, 0, 0, 1, 0, 1, 0),
969 ::capnp::word(20, 0, 0, 0, 3, 0, 4, 0),
970 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
971 ::capnp::word(0, 0, 1, 0, 0, 0, 0, 0),
972 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
973 ::capnp::word(125, 0, 0, 0, 82, 0, 0, 0),
974 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
975 ::capnp::word(124, 0, 0, 0, 3, 0, 1, 0),
976 ::capnp::word(136, 0, 0, 0, 2, 0, 1, 0),
977 ::capnp::word(1, 0, 0, 0, 0, 0, 0, 0),
978 ::capnp::word(0, 0, 1, 0, 1, 0, 0, 0),
979 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
980 ::capnp::word(133, 0, 0, 0, 130, 0, 0, 0),
981 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
982 ::capnp::word(132, 0, 0, 0, 3, 0, 1, 0),
983 ::capnp::word(144, 0, 0, 0, 2, 0, 1, 0),
984 ::capnp::word(2, 0, 0, 0, 1, 0, 0, 0),
985 ::capnp::word(0, 0, 1, 0, 2, 0, 0, 0),
986 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
987 ::capnp::word(141, 0, 0, 0, 66, 0, 0, 0),
988 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
989 ::capnp::word(136, 0, 0, 0, 3, 0, 1, 0),
990 ::capnp::word(164, 0, 0, 0, 2, 0, 1, 0),
991 ::capnp::word(3, 0, 0, 0, 2, 0, 0, 0),
992 ::capnp::word(0, 0, 1, 0, 3, 0, 0, 0),
993 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
994 ::capnp::word(161, 0, 0, 0, 130, 0, 0, 0),
995 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
996 ::capnp::word(160, 0, 0, 0, 3, 0, 1, 0),
997 ::capnp::word(188, 0, 0, 0, 2, 0, 1, 0),
998 ::capnp::word(4, 0, 0, 0, 3, 0, 0, 0),
999 ::capnp::word(0, 0, 1, 0, 4, 0, 0, 0),
1000 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
1001 ::capnp::word(185, 0, 0, 0, 210, 0, 0, 0),
1002 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
1003 ::capnp::word(192, 0, 0, 0, 3, 0, 1, 0),
1004 ::capnp::word(204, 0, 0, 0, 2, 0, 1, 0),
1005 ::capnp::word(115, 105, 122, 101, 66, 121, 116, 101),
1006 ::capnp::word(115, 0, 0, 0, 0, 0, 0, 0),
1007 ::capnp::word(9, 0, 0, 0, 0, 0, 0, 0),
1008 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
1009 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
1010 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
1011 ::capnp::word(9, 0, 0, 0, 0, 0, 0, 0),
1012 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
1013 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
1014 ::capnp::word(115, 117, 98, 112, 97, 114, 116, 105),
1015 ::capnp::word(116, 105, 111, 110, 75, 101, 121, 0),
1016 ::capnp::word(12, 0, 0, 0, 0, 0, 0, 0),
1017 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
1018 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
1019 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
1020 ::capnp::word(12, 0, 0, 0, 0, 0, 0, 0),
1021 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
1022 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
1023 ::capnp::word(99, 111, 108, 117, 109, 110, 115, 0),
1024 ::capnp::word(14, 0, 0, 0, 0, 0, 0, 0),
1025 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
1026 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
1027 ::capnp::word(0, 0, 0, 0, 3, 0, 1, 0),
1028 ::capnp::word(12, 0, 0, 0, 0, 0, 0, 0),
1029 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
1030 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
1031 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
1032 ::capnp::word(14, 0, 0, 0, 0, 0, 0, 0),
1033 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
1034 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
1035 ::capnp::word(105, 110, 116, 101, 114, 110, 101, 100),
1036 ::capnp::word(67, 111, 108, 117, 109, 110, 115, 0),
1037 ::capnp::word(14, 0, 0, 0, 0, 0, 0, 0),
1038 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
1039 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
1040 ::capnp::word(0, 0, 0, 0, 3, 0, 1, 0),
1041 ::capnp::word(9, 0, 0, 0, 0, 0, 0, 0),
1042 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
1043 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
1044 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
1045 ::capnp::word(14, 0, 0, 0, 0, 0, 0, 0),
1046 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
1047 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
1048 ::capnp::word(99, 111, 109, 112, 114, 101, 115, 115),
1049 ::capnp::word(101, 100, 73, 110, 116, 101, 114, 110),
1050 ::capnp::word(101, 100, 67, 111, 108, 117, 109, 110),
1051 ::capnp::word(115, 0, 0, 0, 0, 0, 0, 0),
1052 ::capnp::word(13, 0, 0, 0, 0, 0, 0, 0),
1053 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
1054 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
1055 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
1056 ::capnp::word(13, 0, 0, 0, 0, 0, 0, 0),
1057 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
1058 ::capnp::word(0, 0, 0, 0, 0, 0, 0, 0),
1059 ];
1060 pub fn get_field_types(index: u16) -> ::capnp::introspect::Type {
1061 match index {
1062 0 => <u64 as ::capnp::introspect::Introspect>::introspect(),
1063 1 => <::capnp::text::Owned as ::capnp::introspect::Introspect>::introspect(),
1064 2 => <::capnp::text_list::Owned as ::capnp::introspect::Introspect>::introspect(),
1065 3 => <::capnp::primitive_list::Owned<u64> as ::capnp::introspect::Introspect>::introspect(),
1066 4 => <::capnp::data::Owned as ::capnp::introspect::Introspect>::introspect(),
1067 _ => panic!("invalid field index {}", index),
1068 }
1069 }
1070 pub fn get_annotation_types(child_index: Option<u16>, index: u32) -> ::capnp::introspect::Type {
1071 panic!("invalid annotation indices ({:?}, {}) ", child_index, index)
1072 }
1073 pub static RAW_SCHEMA: ::capnp::introspect::RawStructSchema = ::capnp::introspect::RawStructSchema {
1074 encoded_node: &ENCODED_NODE,
1075 nonunion_members: NONUNION_MEMBERS,
1076 members_by_discriminant: MEMBERS_BY_DISCRIMINANT,
1077 members_by_name: MEMBERS_BY_NAME,
1078 };
1079 pub static NONUNION_MEMBERS : &[u16] = &[0,1,2,3,4];
1080 pub static MEMBERS_BY_DISCRIMINANT : &[u16] = &[];
1081 pub static MEMBERS_BY_NAME : &[u16] = &[2,4,3,0,1];
1082 pub const TYPE_ID: u64 = 0xc0f8_c064_247b_3330;
1083 }
1084}