pub struct Menu<'a> {
    pub name: &'a str,
    pub exp: Option<&'a str>,
    pub items: Vec<Item<'a>>,
    pub exit: bool,
}
Expand description

Starting point for creating a menu instance.

Fields

name: &'a strexp: Option<&'a str>items: Vec<Item<'a>>exit: bool

Posibility of exiting.

Implementations

Prints the items, executes the menu and returns a Result.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.