pub struct MmiMenu {
pub title: String,
pub subtitle: String,
pub bottom: String,
pub choices: Vec<String>,
}Expand description
A decoded high-level MMI menu() / list() ready for display (§8.6.5,
Tables 49/51). The three header lines and the choice list are kept separate
so a UI can render them directly — a title bar, two sub-lines, and a list of
selectable rows — without re-parsing.
Fields§
§title: StringTitle line.
subtitle: StringSub-title line (often a section heading).
bottom: StringBottom line (often a hint such as “Select item and press OK”).
choices: Vec<String>The selectable choices, in wire order. Answer the Nth (1-based) with
Driver::mmi_menu_answer(N); 0
cancels / goes back.
Trait Implementations§
impl Eq for MmiMenu
impl StructuralPartialEq for MmiMenu
Auto Trait Implementations§
impl Freeze for MmiMenu
impl RefUnwindSafe for MmiMenu
impl Send for MmiMenu
impl Sync for MmiMenu
impl Unpin for MmiMenu
impl UnsafeUnpin for MmiMenu
impl UnwindSafe for MmiMenu
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more