hydrate_schema/schema/
dynamic_array.rs

1use super::Schema;
2
3#[derive(Clone, Debug, PartialEq)]
4pub struct SchemaDynamicArray {
5    item_type: Box<Schema>,
6}
7
8impl SchemaDynamicArray {
9    pub(crate) fn new(item_type: Box<Schema>) -> Self {
10        SchemaDynamicArray { item_type }
11    }
12
13    pub fn item_type(&self) -> &Schema {
14        &*self.item_type
15    }
16}