pub struct App {Show 13 fields
pub mode: AppMode,
pub view: View,
pub command_input: CommandInput,
pub migration_list: MigrationListView,
pub migration_detail: MigrationDetailView,
pub help_view: HelpView,
pub output_stream: OutputStreamWidget,
pub migration_content_view: MigrationContentView,
pub database_url: Option<String>,
pub config: Config,
pub verbose: bool,
pub messages: Vec<(String, MessageType)>,
pub should_quit: bool,
}
Fields§
§mode: AppMode
§view: View
§command_input: CommandInput
§migration_list: MigrationListView
§migration_detail: MigrationDetailView
§help_view: HelpView
§output_stream: OutputStreamWidget
§migration_content_view: MigrationContentView
§database_url: Option<String>
§config: Config
§verbose: bool
§messages: Vec<(String, MessageType)>
§should_quit: bool
Implementations§
Source§impl App
impl App
pub fn new(database_url: Option<String>, config: Config, verbose: bool) -> Self
pub fn refresh_data(&mut self)
pub fn add_message(&mut self, message: String, msg_type: MessageType)
pub fn handle_key_event(&mut self, key: KeyEvent) -> Result<bool>
pub fn tick(&mut self)
pub fn draw(&mut self, f: &mut Frame<'_>)
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
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