added a scratched of implementation but still need to craft one detail and write test to validate

This commit is contained in:
Evance Souamoro
2021-04-06 11:46:17 +00:00
parent 86b30d9d7f
commit f82922b354
2 changed files with 105 additions and 3 deletions

View File

@@ -192,7 +192,7 @@ impl SchemaBuilder {
}))
}
}
#[derive(Debug)]
struct InnerSchema {
fields: Vec<FieldEntry>,
fields_map: HashMap<String, Field>, // transient
@@ -226,7 +226,7 @@ impl Eq for InnerSchema {}
/// let schema = schema_builder.build();
///
/// ```
#[derive(Clone, Eq, PartialEq)]
#[derive(Clone, Eq, PartialEq, Debug)]
pub struct Schema(Arc<InnerSchema>);
impl Schema {