pub struct KeyBindings {Show 34 fields
pub accept: Vec<Key>,
pub change_card_status_to_active: Vec<Key>,
pub change_card_status_to_completed: Vec<Key>,
pub change_card_status_to_stale: Vec<Key>,
pub change_card_priority_to_high: Vec<Key>,
pub change_card_priority_to_medium: Vec<Key>,
pub change_card_priority_to_low: Vec<Key>,
pub clear_all_toasts: Vec<Key>,
pub delete_board: Vec<Key>,
pub delete_card: Vec<Key>,
pub down: Vec<Key>,
pub go_to_main_menu: Vec<Key>,
pub go_to_previous_view_or_cancel: Vec<Key>,
pub hide_ui_element: Vec<Key>,
pub left: Vec<Key>,
pub move_card_down: Vec<Key>,
pub move_card_left: Vec<Key>,
pub move_card_right: Vec<Key>,
pub move_card_up: Vec<Key>,
pub new_board: Vec<Key>,
pub new_card: Vec<Key>,
pub next_focus: Vec<Key>,
pub open_config_menu: Vec<Key>,
pub prv_focus: Vec<Key>,
pub quit: Vec<Key>,
pub redo: Vec<Key>,
pub reset_ui: Vec<Key>,
pub right: Vec<Key>,
pub save_state: Vec<Key>,
pub stop_user_input: Vec<Key>,
pub take_user_input: Vec<Key>,
pub toggle_command_palette: Vec<Key>,
pub undo: Vec<Key>,
pub up: Vec<Key>,
}Fields§
§accept: Vec<Key>§change_card_status_to_active: Vec<Key>§change_card_status_to_completed: Vec<Key>§change_card_status_to_stale: Vec<Key>§change_card_priority_to_high: Vec<Key>§change_card_priority_to_medium: Vec<Key>§change_card_priority_to_low: Vec<Key>§clear_all_toasts: Vec<Key>§delete_board: Vec<Key>§delete_card: Vec<Key>§down: Vec<Key>§go_to_previous_view_or_cancel: Vec<Key>§hide_ui_element: Vec<Key>§left: Vec<Key>§move_card_down: Vec<Key>§move_card_left: Vec<Key>§move_card_right: Vec<Key>§move_card_up: Vec<Key>§new_board: Vec<Key>§new_card: Vec<Key>§next_focus: Vec<Key>§prv_focus: Vec<Key>§quit: Vec<Key>§redo: Vec<Key>§reset_ui: Vec<Key>§right: Vec<Key>§save_state: Vec<Key>§stop_user_input: Vec<Key>§take_user_input: Vec<Key>§toggle_command_palette: Vec<Key>§undo: Vec<Key>§up: Vec<Key>Implementations§
Source§impl KeyBindings
impl KeyBindings
pub fn iter(&self) -> impl Iterator<Item = (KeyBindingEnum, &Vec<Key>)>
pub fn key_to_action(&self, key: &Key) -> Option<Action>
pub fn keybinding_enum_to_action( &self, keybinding_enum: KeyBindingEnum, ) -> Action
pub fn edit_keybinding(&mut self, key: &str, keybinding: Vec<Key>) -> &mut Self
pub fn get_keybindings( &self, keybinding_enum: KeyBindingEnum, ) -> Option<Vec<Key>>
Trait Implementations§
Source§impl Clone for KeyBindings
impl Clone for KeyBindings
Source§fn clone(&self) -> KeyBindings
fn clone(&self) -> KeyBindings
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for KeyBindings
impl Debug for KeyBindings
Source§impl Default for KeyBindings
impl Default for KeyBindings
Source§impl<'de> Deserialize<'de> for KeyBindings
impl<'de> Deserialize<'de> for KeyBindings
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for KeyBindings
impl RefUnwindSafe for KeyBindings
impl Send for KeyBindings
impl Sync for KeyBindings
impl Unpin for KeyBindings
impl UnwindSafe for KeyBindings
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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