pub struct Selector {
pub concepts: Vec<Concept>,
pub variants: Vec<Variant>,
pub audience: Audience,
pub depth: Depth,
pub locale: String,
pub headers: bool,
}Expand description
What to compose. Build one directly, or use a Recipe.
Fields§
§concepts: Vec<Concept>Concepts to include, in render order.
variants: Vec<Variant>Variants to include; empty means all.
audience: AudienceAudience lens.
depth: DepthHow much detail.
locale: StringRequested locale; falls back to DEFAULT_LOCALE per slot.
headers: boolEmit ## <concept title> section headers. Markdown-rendering clients want
them; a plain-terminal REPL banner does not.
Implementations§
Source§impl Selector
impl Selector
Sourcepub fn with_overlay(self) -> Selector
pub fn with_overlay(self) -> Selector
Opt into Concept::Overlay guidance (--overlay, kaish-vfs). Every
Recipe excludes it by default — most embedders never enable overlay
mode, and the paragraph is dead weight (or an active mixed signal for a
read-only embedder) when they don’t. Chain it onto a recipe:
Recipe::agent_onboarding().with_overlay(). A no-op if already present.
Sourcepub fn without_overlay(self) -> Selector
pub fn without_overlay(self) -> Selector
Drop Concept::Overlay guidance, in case a future recipe or a
caller-built Selector included it. Symmetric with
Self::with_overlay; a no-op today since no recipe defaults it in.
Auto Trait Implementations§
impl Freeze for Selector
impl RefUnwindSafe for Selector
impl Send for Selector
impl Sync for Selector
impl Unpin for Selector
impl UnsafeUnpin for Selector
impl UnwindSafe for Selector
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
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
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> Pointable for T
impl<T> Pointable for T
Source§impl<T, S> SpanWrap<S> for Twhere
S: WrappingSpan<T>,
impl<T, S> SpanWrap<S> for Twhere
S: WrappingSpan<T>,
Source§fn with_span(self, span: S) -> <S as WrappingSpan<Self>>::Spanned
fn with_span(self, span: S) -> <S as WrappingSpan<Self>>::Spanned
WrappingSpan::make_wrapped to wrap an AST node in a span.