pub struct PromptItem {
pub label: String,
pub hint: Option<String>,
}Expand description
One selectable row in a palette-style prompt (commands, files, matches).
Hooks own the meaning: they fill these, the frontend only draws them.
Fields§
§label: StringThe primary row text (inserted on Tab-completion).
hint: Option<String>Secondary hint text (keybinding, path, match count).
Implementations§
Trait Implementations§
Source§impl Clone for PromptItem
impl Clone for PromptItem
Source§fn clone(&self) -> PromptItem
fn clone(&self) -> PromptItem
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PromptItem
impl Debug for PromptItem
impl Eq for PromptItem
Source§impl PartialEq for PromptItem
impl PartialEq for PromptItem
impl StructuralPartialEq for PromptItem
Auto Trait Implementations§
impl Freeze for PromptItem
impl RefUnwindSafe for PromptItem
impl Send for PromptItem
impl Sync for PromptItem
impl Unpin for PromptItem
impl UnsafeUnpin for PromptItem
impl UnwindSafe for PromptItem
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