#survey #elicitor #define #response #key #wizard #elicit

elicitor-types

Core types for the elicit crate - presentation-agnostic survey definitions

2 releases

Uses new Rust 2024

0.6.1 Jan 18, 2026
0.6.0 Jan 17, 2026

#1124 in Data structures

32 downloads per month
Used in 9 crates (2 directly)

MIT/Apache

44KB
967 lines

Core types for the derive-survey crate.

This crate provides the foundational types for defining surveys:

  • SurveyDefinition - The top-level survey structure
  • Question and QuestionKind - Individual questions and their types
  • Responses and ResponsePath - Collected data and path-based keys
  • Survey and SurveyBackend traits - For implementing surveys and backends

elicitor

Derive interactive surveys from Rust types.

This workspace contains the elicitor crates:

Crate Description
elicitor Main crate with #[derive(Survey)] macro
elicitor-types Core data structures and traits
elicitor-macro Procedural macro implementation

Backends:

Crate Description
elicitor-wizard-dialoguer CLI prompts via dialoguer
elicitor-wizard-requestty CLI prompts via requestty
elicitor-wizard-ratatui Terminal UI wizard
elicitor-form-ratatui Terminal UI form
elicitor-form-egui Native GUI form

Document generators:

Crate Description
elicitor-doc-html HTML form output
elicitor-doc-latex LaTeX document output

See the elicitor README for usage documentation.

License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.

Dependencies

~205–630KB
~14K SLoC