pub trait TypeValidator {
    fn is_valid(&self, value: &IonSchemaElement, type_store: &TypeStore) -> bool;
    fn validate(
        &self,
        value: &IonSchemaElement,
        type_store: &TypeStore
    ) -> ValidationResult; }
Expand description

Provides validation for TypeDefinition

Required Methods

If the specified value violates one or more of this type’s constraints, returns false, otherwise true

Returns Err(violation) with details as to which constraints were violated, otherwise returns Ok(()) indicating no violations were found during the validation

Implementors