pub struct SpecContext {
pub schema: &'static str,
pub topic: String,
pub symbols: Vec<SymbolContext>,
pub docs: Vec<NodeSummary>,
pub related_adrs: Vec<String>,
}Expand description
Graph-grounded context for a topic: the related symbols (with neighbourhood), related docs/ADRs, and the set of ADRs that govern any matched symbol.
Fields§
§schema: &'static strStable schema tag (SPEC_SCHEMA).
topic: StringThe topic that was searched.
symbols: Vec<SymbolContext>Matched code symbols with their neighbourhood, most relevant first.
docs: Vec<NodeSummary>Matched docs (ADRs, sections, blueprints, lat/imported docs).
Keys of ADR-layer nodes governing the matched symbols or matched directly.
Trait Implementations§
Source§impl Clone for SpecContext
impl Clone for SpecContext
Source§fn clone(&self) -> SpecContext
fn clone(&self) -> SpecContext
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 SpecContext
impl Debug for SpecContext
Source§impl PartialEq for SpecContext
impl PartialEq for SpecContext
Source§impl Serialize for SpecContext
impl Serialize for SpecContext
impl StructuralPartialEq for SpecContext
Auto Trait Implementations§
impl Freeze for SpecContext
impl RefUnwindSafe for SpecContext
impl Send for SpecContext
impl Sync for SpecContext
impl Unpin for SpecContext
impl UnsafeUnpin for SpecContext
impl UnwindSafe for SpecContext
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