Module ion_schema::schema
source · Expand description
Represents a Schema
which is collection of zero or more TypeDefinition
s.
Provides functions to get the underlying TypeDefinition
s from the Schema
that can be used to validate an Ion value.
get_types
: This function returns anSchemaTypeIterator
which can be used to iterate over theTypeDefinition
s.get_type
: This function requires to pass the name of a type definition that you want to use for validation. It returns theTypeDefinition
if it is defined in theSchema
otherwise returnsNone
.
Structs§
- A Schema is a collection of zero or more
TypeDefinition
s. - Provides an Iterator which returns
TypeDefinition
s inside aSchema