Expand description
Diagnostic codes emitted by check_conformance.
Exposed as a module of pub const &str slugs so downstream tools
(lint UIs, doc generators) can reference them without matching on
string literals.
Constants§
- ARITY_
ONE - A
crate::Multiplicity::Oneslot did not carry exactly one child. - ARITY_
OPTIONAL - A
crate::Multiplicity::Optionalslot carried more than one child. - CHILD_
AS_ FIELD - A child slot appeared under
fields(structural mismatch). - DUPLICATE_
CHILD - A child slot name appeared more than once.
- DUPLICATE_
FIELD - A field name appeared more than once.
- FIELD_
AS_ CHILD - A payload field appeared under
children(structural mismatch). - FIELD_
TYPE - A payload field’s value could not be converted to the target
Rust type (serde deserialization failure or
FromStrfailure). - MISSING_
FIELD - A field required by the schema is absent from the tree.
- UNKNOWN_
CHILD - The tree references a child slot the schema does not declare.
- UNKNOWN_
FIELD - The tree carries a field the schema does not declare.
- UNKNOWN_
VARIANT - Tree’s
variantdid not match anyVariantSchemain theNodeSchema.