chore: PC change (create multientry)

This commit is contained in:
alphafetus committed 2025-07-27 17:53:45 -04:00
1 parent 127cf17c90
commit 9d18eb0810
8 files changed
+302 -5

No files matched your search

+38
View File
@@ -0,0 +1,38 @@
use std::collections::HashMap;
use serde::{Serialize, Deserialize};
#[derive(Serialize, Deserialize)]
struct FormDefinition {
sections: Vec<Section>
}
#[derive(Serialize, Deserialize)]
struct Section {
questions: Vec<QuestionType>
}
#[derive(Serialize, Deserialize)]
enum QuestionType {
Text,
Email,
Number,
Dropdown,
Checkbox,
Radio,
Multi
}
struct TextInput {
}
#[derive(Serialize, Deserialize)]
struct QuestionComponent {
question_type: QuestionType,
label: Option<String>,
placeholder: Option<String>,
// Used in <select> and <checkbox> elements
options: Option<HashMap<String, String>>
}
+3 -1
View File
@@ -1,7 +1,9 @@
mod loaner_user;
mod student_info;
mod form_definition;
pub use self::{
loaner_user::*,
student_info::*
student_info::*,
form_definition::*
};