Crate ion_schema

Crate ion_schema 

Source

Modules§

authority
Provides a way to construct DocumentAuthority.
isl
Provides a way to construct ISL types/constraints programmatically.
result
Represents the IonSchemaResult type for error handling.
schema
Represents a Schema which is collection of zero or more TypeDefinitions. Provides functions to get the underlying TypeDefinitions from the Schema that can be used to validate an Ion value.
system
Provides functions for getting instances of Schema using SchemaSystem.
types
violation

Macros§

assert_equivalent_violations
Equivalence for Violations is not supported due to its tree structure of having children violations. This macro can be used for comparing if two violations are equal and uses flattened_violations for the comparison.
assert_non_equivalent_violations
Equivalence for Violations is not supported due to its tree structure of having children violations. This macro can be used for comparing if two violations are not equal and uses flattened_violations for the comparison.
isl_require
A macro that checks some condition required to be valid ISL.

Structs§

DocumentHint
Marker type to indicate that a sequence of Element should be validated as a document.
IonSchemaElement
Represents a value that can be validated by Ion Schema.
UserReservedFields

Traits§

AsDocumentHint