1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
---
source: crates/macros/src/view.rs
expression: "expand(r###\"<Modal title=\"Feedback\" custom_id=\"feedback\">\n <Label text=\"Topic\"><TextInput name=\"topic\" max_len=100/></Label>\n <Label text=\"Kind\"><RadioGroup name=\"kind\" options=Kind/></Label>\n </Modal>\"###)"
---
fn view() -> View {
{
let __view = {
#[allow(unused_braces)]
{
{
let _: ::composure::command::ModalView;
::composure::command::ModalView::builder()
.title("Feedback")
.custom_id("feedback")
.reserve(2usize)
.child({
{
let _: ::composure::types::Label;
::composure::types::Label::builder()
.text("Topic")
.child({
::composure::types::TextInput::builder()
.name("topic")
.max_len(100)
.build()
})
.build()
}
})
.child({
{
let _: ::composure::types::Label;
::composure::types::Label::builder()
.text("Kind")
.child({
::composure::types::RadioGroup::builder()
.name("kind")
.options::<Kind>()
.build()
})
.build()
}
})
.build()
}
}
};
__view
}
}