pub enum Command {
Chrome {
title: ChromeTitle,
status: Option<ChromeStatus>,
width: Option<u32>,
height: Option<u32>,
},
Message {
title: ChromeTitle,
message: String,
status: Option<ChromeStatus>,
buttons: ButtonsPreset,
custom_buttons: Option<Vec<String>>,
default_button: Option<u32>,
level: Option<MessageLevel>,
icon: Option<MediaRef>,
image: Option<MediaRef>,
markdown: bool,
width: Option<u32>,
height: Option<u32>,
},
Input {Show 16 fields
title: ChromeTitle,
message: String,
status: Option<ChromeStatus>,
icon: Option<MediaRef>,
markdown: bool,
multiline: bool,
placeholder: Option<String>,
default: Option<String>,
password: bool,
mode: InputMode,
filter: Option<Vec<String>>,
multiple: bool,
start_path: Option<String>,
buttons: ButtonsPreset,
width: Option<u32>,
height: Option<u32>,
},
Markdown {
title: Option<ChromeTitle>,
file: Option<String>,
content: Option<String>,
status: Option<ChromeStatus>,
buttons: ButtonsPreset,
width: Option<u32>,
height: Option<u32>,
},
Question {
questions: Vec<QuestionCard>,
questions_raw: Vec<Value>,
width: Option<u32>,
height: Option<u32>,
},
Wizard(WizardCommand),
Report(ReportCommand),
}Expand description
Executable command after successful validation.
Variants§
Chrome
Foundation chrome frame: required title, optional status.
Message
Modal message dialog (Phase B sprint b.1 / b.2).
Input
Modal input dialog — text / file / folder (REQ-0013 / REQ-0015).
Markdown
Markdown viewer — exactly one of file or content (REQ-0016 / REQ-0058).
Fields
title: Option<ChromeTitle>Window title; omitted → filename (file) or "Markdown" (inline).
status: Option<ChromeStatus>Defaults to ButtonsPreset::Ok when omitted.
Question
Question cards dialog (REQ-0061 / REQ-0062).
Fields
questions: Vec<QuestionCard>Typed cards used for rendering and host-side answer checks.
Wizard(WizardCommand)
Multi-page wizard (Phase D / REQ-0017 / REQ-0026).
Report(ReportCommand)
Static XHTML/HTML report (Phase H / REQ-0140 / ADR-0025).
Implementations§
Source§impl Command
impl Command
Sourcepub fn window_width(&self) -> Option<u32>
pub fn window_width(&self) -> Option<u32>
Optional viewer window width from command JSON (width).
Sourcepub fn window_height(&self) -> Option<u32>
pub fn window_height(&self) -> Option<u32>
Optional viewer window height from command JSON (height).
Sourcepub fn window_size_hint(&self) -> WindowSizeHint
pub fn window_size_hint(&self) -> WindowSizeHint
Combined optional window size hint.