amazon-ion / ion-schema-rust

Rust implementation of Ion Schema
https://amazon-ion.github.io/ion-schema/sandbox
Apache License 2.0
13 stars 6 forks source link

Implement `SchemaDefinition` and `Schema` #36

Open desaikd opened 3 years ago

desaikd commented 3 years ago

Currently load_schema method on schema_system returns Rc<Schema> but this can be removed by having two different implementation as below:

Schema: Public facing wrapper type
SchemaDefinition: Private struct which can store all the information on the schema