pub struct RecallConfig {
pub keymap: String,
pub show_preview: bool,
pub result_limit: usize,
pub preview: PreviewConfig,
}Expand description
Configuration for the recall TUI
Fields§
§keymap: StringKeymap mode: “emacs” or “vim”
show_preview: boolWhether to show the preview pane
result_limit: usizeMaximum number of results to load
preview: PreviewConfigPreview pane configuration
Implementations§
Source§impl RecallConfig
impl RecallConfig
Sourcepub fn initial_keymap_mode(&self) -> KeymapMode
pub fn initial_keymap_mode(&self) -> KeymapMode
Get the initial keymap mode from config
Trait Implementations§
Source§impl Clone for RecallConfig
impl Clone for RecallConfig
Source§impl Debug for RecallConfig
impl Debug for RecallConfig
Source§impl Default for RecallConfig
impl Default for RecallConfig
Source§impl<'de> Deserialize<'de> for RecallConfigwhere
RecallConfig: Default,
impl<'de> Deserialize<'de> for RecallConfigwhere
RecallConfig: Default,
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
Source§impl PartialEq for RecallConfig
impl PartialEq for RecallConfig
Source§impl Serialize for RecallConfig
impl Serialize for RecallConfig
impl StructuralPartialEq for RecallConfig
Auto Trait Implementations§
impl Freeze for RecallConfig
impl RefUnwindSafe for RecallConfig
impl Send for RecallConfig
impl Sync for RecallConfig
impl Unpin for RecallConfig
impl UnsafeUnpin for RecallConfig
impl UnwindSafe for RecallConfig
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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