pub struct RadarChunk {
pub chunk_id: String,
pub title: String,
pub span: SourceSpan,
pub crate_name: Option<String>,
pub kind: String,
pub text: String,
pub capabilities: Vec<String>,
pub codecs: Vec<String>,
pub agent_roles: Vec<String>,
pub live: bool,
}Expand description
Chunk from the F1 constellation index that can be ranked by Radar.
Fields§
§chunk_id: StringStable chunk id from the index.
title: StringOne-line purpose or title.
span: SourceSpanOwning source span.
crate_name: Option<String>Owning crate, when the index knows one.
kind: StringIndexed source kind.
text: StringIndexed text used for retrieval.
capabilities: Vec<String>Capability labels inferred for this chunk.
codecs: Vec<String>Codec labels inferred for this chunk.
agent_roles: Vec<String>Agent roles associated with this chunk.
live: boolWhether the span still resolves in the owning checkout.
Implementations§
Trait Implementations§
Source§impl Clone for RadarChunk
impl Clone for RadarChunk
Source§fn clone(&self) -> RadarChunk
fn clone(&self) -> RadarChunk
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 RadarChunk
impl Debug for RadarChunk
impl Eq for RadarChunk
Source§impl PartialEq for RadarChunk
impl PartialEq for RadarChunk
Source§fn eq(&self, other: &RadarChunk) -> bool
fn eq(&self, other: &RadarChunk) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RadarChunk
Auto Trait Implementations§
impl Freeze for RadarChunk
impl RefUnwindSafe for RadarChunk
impl Send for RadarChunk
impl Sync for RadarChunk
impl Unpin for RadarChunk
impl UnsafeUnpin for RadarChunk
impl UnwindSafe for RadarChunk
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