diff options
| author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-03-19 07:45:14 +0100 |
|---|---|---|
| committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-03-19 07:45:14 +0100 |
| commit | f6a3fb9c4d8dd86f78c9f75a23c1ac35bf35d4eb (patch) | |
| tree | 5f28fbca03d83921b568f7cb1708374456d9ec42 /rocie-macros/src/form/mod.rs | |
| parent | feat(treewide): Add further buttons (diff) | |
| download | web-client-f6a3fb9c4d8dd86f78c9f75a23c1ac35bf35d4eb.zip | |
feat(treewide): Commit MVP
Diffstat (limited to 'rocie-macros/src/form/mod.rs')
| -rw-r--r-- | rocie-macros/src/form/mod.rs | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/rocie-macros/src/form/mod.rs b/rocie-macros/src/form/mod.rs index b165750..978b081 100644 --- a/rocie-macros/src/form/mod.rs +++ b/rocie-macros/src/form/mod.rs @@ -5,14 +5,12 @@ mod parse; pub use generate::form_impl; -#[derive(Debug)] pub struct ParsedOnSubmit { inputs: Vec<Ident>, block: Expr, pub(crate) should_use_move: bool, } -#[derive(Debug)] pub enum ParsedChild { Input { name: Ident, @@ -22,6 +20,10 @@ pub enum ParsedChild { reactive: Option<Ident>, auto_complete: Option<Ident>, }, + Checkbox { + name: Ident, + label: LitStr, + }, Select { name: Ident, label: LitStr, @@ -32,9 +34,12 @@ pub enum ParsedChild { when: Expr, children: Vec<ParsedChild>, }, + Textarea { + name: Ident, + label: LitStr, + }, } -#[derive(Debug)] pub struct ParsedInput { on_submit: ParsedOnSubmit, children: Vec<ParsedChild>, |
