Module ion_schema::result

source ·
Expand description

Represents the IonSchemaResult type for error handling.

IonSchemaResult<T, E> is the type used for returning and propagating errors. It is an enum with the variants, Ok(T), representing success and containing a value,and Err(E), representing an IonSchemaError.

Enums§

  • Represents the different types of high-level failures that might occur when reading Ion Schema.

Functions§

  • A convenience method for creating an IonSchemaResult containing an IonSchemaError::InvalidSchemaError with the provided description text.
  • A convenience method for creating an IonSchemaError::InvalidSchemaError with the provided operation text.
  • A convenience method for creating an IonSchemaResult containing an IonSchemaError::UnresolvableSchemaError with the provided description text.
  • A convenience method for creating an IonSchemaError::InvalidSchemaError with the provided operation text.

Type Aliases§

  • A unified Result type representing the outcome of method calls that may fail.
  • A Result type representing the outcome of validation that may result in violations.