pub struct App {
pub input: String,
pub input_mode: InputMode,
pub quests: Vec<Quest>,
pub should_exit: bool,
pub selected_quest: Option<usize>,
pub configs: Configs,
}Expand description
Application state
Fields§
§input: StringNew quest input value
input_mode: InputModeCurrent input mode
quests: Vec<Quest>List of all quests
should_exit: boolShould be true when application wants to exit
selected_quest: Option<usize>Current selected quest
configs: ConfigsApplication Configs
Implementations§
Auto Trait Implementations§
impl Freeze for App
impl RefUnwindSafe for App
impl Send for App
impl Sync for App
impl Unpin for App
impl UnwindSafe for App
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