pub struct SourceSpec {
pub id: String,
pub doc: String,
pub args_schema: Option<ArgsSchema>,
pub live: bool,
}Expand description
Metadata for a source. Returned by the source-registration’s
spec field; used for :describe-picker / :picker <Tab> /
:apropos introspection.
Fields§
§id: StringStable id — :picker <id> invokes the source. Stable
across versions; renames break user keybindings.
doc: StringUser-facing one-line summary. Shown in :picker <Tab>
completion and :describe-picker rows.
args_schema: Option<ArgsSchema>Whether the source accepts positional args via
:picker <id> <args...>. None ⇒ no args; Some(schema)
declares positional shape. v1 keeps the schema opaque
(description string); a future slice can grow this to a
typed validator.
live: booltrue ⇒ the source’s results refresh on every query
change (e.g. :picker grep where the external process
IS the filter). Picker bypasses fuzzy-refilter in live
mode.
Trait Implementations§
Source§impl Clone for SourceSpec
impl Clone for SourceSpec
Source§fn clone(&self) -> SourceSpec
fn clone(&self) -> SourceSpec
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 moreAuto Trait Implementations§
impl Freeze for SourceSpec
impl RefUnwindSafe for SourceSpec
impl Send for SourceSpec
impl Sync for SourceSpec
impl Unpin for SourceSpec
impl UnsafeUnpin for SourceSpec
impl UnwindSafe for SourceSpec
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