Skip to main content

Crate rustxform_core

Crate rustxform_core 

Source
Expand description

Core data model shared across the rustxform pipeline.

These types are the normalized, backend-agnostic representation of an XLSForm after parsing and before XForm emission. They grow as later phases add groups, repeats, translations and parameters.

Structs§

Action
A model-level action element bound to a question.
Builtin
The XForm mapping for a built-in question type.
Choice
One option within a choice list.
ChoiceList
A named list of choices from the choices sheet.
Container
A container of child nodes: a group (<group>) or a repeat (<repeat>).
Entity
An ODK Entities declaration (the entities sheet): the survey creates an entity in a dataset when submitted.
Localized
Localizable text from a label/hint column family.
Media
A label media attachment: a form (image/audio/video) and its file(s), which may be single- or multi-language.
Preload
A metadata preload binding (jr:preload + jr:preloadParams).
Question
A single survey question from the survey sheet.
Settings
Form-level settings, sourced from the XLSForm settings sheet.
Survey
A parsed XLSForm survey: settings, a node tree and choice lists.

Enums§

Control
The XForm body control a built-in question renders as.
Kind
The resolved semantics of a question’s type column.
Node
A node in the survey tree: a question, a group, or a repeat.
SelectType
Which selection control a Kind::Select renders as.

Functions§

resolve_builtin
Resolve a single XLSForm type token to its built-in XForm mapping.