Skip to main content

parse

Function parse 

Source
pub fn parse(input: &str) -> Result<Vec<AttributeDefinition>, TomlSchemaError>
Expand description

Parses hierarchical TOML into normalized attribute declarations.

Grouped syntax uses [[entity]] followed by [entity.attributes]. The entity name supplies the attribute group. Flat syntax uses [[attribute]] with an optional group. Entity groups are not persisted as types.

ยงErrors

Returns TomlSchemaError for invalid TOML, unsupported values, invalid names, conflicting cardinality spellings, or duplicate canonical idents.