Skip to main content

Module parse

Module parse 

Source
Expand description

FromEure implementations for schema types.

This module provides two categories of types:

  1. FromEure implementations for existing types - Types that don’t contain SchemaNodeId can implement FromEure directly (e.g., BindingStyle, TextSchema).

  2. Parsed types - Syntactic representations of schema types that use NodeId instead of SchemaNodeId (e.g., ParsedArraySchema, ParsedRecordSchema).

§Architecture

EureDocument
    ↓ FromEure trait
ParsedSchemaNode, ParsedArraySchema, ...
    ↓ Converter (convert.rs)
SchemaDocument, SchemaNode, ArraySchema, ...

Structs§

ParsedArraySchema
Parsed array schema with NodeId references.
ParsedExtTypeSchema
Parsed extension type schema with NodeId reference.
ParsedFloatSchema
Parsed float schema - syntactic representation with range as string.
ParsedImportEntry
Single entry in the $import map: alias → raw path string.
ParsedImports
Parsed representation of the root-level $import extension.
ParsedIntegerSchema
Parsed integer schema - syntactic representation with range as string.
ParsedMapSchema
Parsed map schema with NodeId references.
ParsedRecordFieldSchema
Parsed record field schema with NodeId reference.
ParsedRecordSchema
Parsed record schema with NodeId references.
ParsedSchemaMetadata
Parsed schema metadata - extension metadata via $ext-type on $types.type.
ParsedSchemaNode
Parsed schema node - full syntactic representation of a schema node.
ParsedTupleSchema
Parsed tuple schema with NodeId references.
ParsedUnionSchema
Parsed union schema with NodeId references.

Enums§

ParsedExports
Parsed representation of the root-level $export extension.
ParsedSchemaNodeContent
Parsed schema node content - the type definition with NodeId references.
ParsedUnknownFieldsPolicy
Policy for handling fields not defined in record properties.

Functions§

parse_root_exports
Read the root-level $export extension if present. Returns Ok(None) when $export is omitted (callers default to “all locally-declared types”).
parse_root_imports
Read the root-level $import extension if present.