pub struct App<'a> {
pub commands: Vec<Command>,
pub selected: Option<usize>,
pub show_help: bool,
pub message: Option<(String, Color)>,
pub filter_text: String,
pub filtered_commands: Vec<usize>,
pub db: &'a mut Database,
pub confirm_delete: Option<usize>,
pub debug_mode: bool,
}Fields§
§commands: Vec<Command>§selected: Option<usize>§show_help: bool§message: Option<(String, Color)>§filter_text: String§filtered_commands: Vec<usize>§db: &'a mut Database§confirm_delete: Option<usize>§debug_mode: boolImplementations§
Auto Trait Implementations§
impl<'a> Freeze for App<'a>
impl<'a> !RefUnwindSafe for App<'a>
impl<'a> Send for App<'a>
impl<'a> !Sync for App<'a>
impl<'a> Unpin for App<'a>
impl<'a> !UnwindSafe for App<'a>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more