()
| 43 | |
| 44 | impl QuestionPrompt { |
| 45 | pub fn new() -> Self { |
| 46 | Self { |
| 47 | current_question: None, |
| 48 | is_open: false, |
| 49 | selected_index: 0, |
| 50 | selected_options: Vec::new(), |
| 51 | text_input: String::new(), |
| 52 | last_rendered_area: Cell::new(None), |
| 53 | } |
| 54 | } |
| 55 | |
| 56 | pub fn ask(&mut self, question: QuestionRequest) { |
| 57 | let option_count = question.options.len(); |