AppContext

Trait AppContext 

Source
pub trait AppContext {
Show 39 methods // Required methods fn next_row(&mut self); fn previous_row(&mut self); fn move_column_left(&mut self); fn move_column_right(&mut self); fn page_down(&mut self); fn page_up(&mut self); fn goto_first_row(&mut self); fn goto_last_row(&mut self); fn goto_first_column(&mut self); fn goto_last_column(&mut self); fn get_current_column(&self) -> usize; fn get_mode(&self) -> AppMode; fn set_mode(&mut self, mode: AppMode); fn set_edit_mode(&mut self, mode: EditMode); fn get_input_text(&self) -> String; fn execute_query(&mut self, query: &str) -> Result<()>; fn handle_completion(&mut self); fn yank_cell(&mut self); fn yank_row(&mut self); fn yank_column(&mut self); fn yank_all(&mut self); fn paste_from_clipboard(&mut self); fn export_to_csv(&mut self); fn export_to_json(&mut self); fn next_buffer(&mut self); fn previous_buffer(&mut self); fn close_buffer(&mut self) -> Result<bool>; fn new_buffer(&mut self); fn list_buffers(&mut self); fn clear_filter(&mut self); fn next_search_match(&mut self); fn previous_search_match(&mut self); fn sort_by_column(&mut self, column: usize); fn sort_by_column_desc(&mut self, column: usize); fn toggle_column_pin(&mut self); fn clear_all_pinned_columns(&mut self); fn calculate_column_statistics(&mut self); fn generate_debug_context(&mut self); fn generate_pretty_query(&mut self);
}
Expand description

Trait for application context that actions can operate on

Required Methods§

Source

fn next_row(&mut self)

Source

fn previous_row(&mut self)

Source

fn move_column_left(&mut self)

Source

fn move_column_right(&mut self)

Source

fn page_down(&mut self)

Source

fn page_up(&mut self)

Source

fn goto_first_row(&mut self)

Source

fn goto_last_row(&mut self)

Source

fn goto_first_column(&mut self)

Source

fn goto_last_column(&mut self)

Source

fn get_current_column(&self) -> usize

Source

fn get_mode(&self) -> AppMode

Source

fn set_mode(&mut self, mode: AppMode)

Source

fn set_edit_mode(&mut self, mode: EditMode)

Source

fn get_input_text(&self) -> String

Source

fn execute_query(&mut self, query: &str) -> Result<()>

Source

fn handle_completion(&mut self)

Source

fn yank_cell(&mut self)

Source

fn yank_row(&mut self)

Source

fn yank_column(&mut self)

Source

fn yank_all(&mut self)

Source

fn paste_from_clipboard(&mut self)

Source

fn export_to_csv(&mut self)

Source

fn export_to_json(&mut self)

Source

fn next_buffer(&mut self)

Source

fn previous_buffer(&mut self)

Source

fn close_buffer(&mut self) -> Result<bool>

Source

fn new_buffer(&mut self)

Source

fn list_buffers(&mut self)

Source

fn clear_filter(&mut self)

Source

fn next_search_match(&mut self)

Source

fn previous_search_match(&mut self)

Source

fn sort_by_column(&mut self, column: usize)

Source

fn sort_by_column_desc(&mut self, column: usize)

Source

fn toggle_column_pin(&mut self)

Source

fn clear_all_pinned_columns(&mut self)

Source

fn calculate_column_statistics(&mut self)

Source

fn generate_debug_context(&mut self)

Source

fn generate_pretty_query(&mut self)

Implementors§