pub struct ContentChunk {
pub file_path: String,
pub symbol_name: String,
pub kind: ChunkKind,
pub start_line: usize,
pub end_line: usize,
pub content: String,
pub tokens: Vec<String>,
pub token_count: usize,
pub source: ContentSource,
pub references: Vec<String>,
pub metadata: Option<Value>,
}Expand description
A universal content chunk that can represent code, issues, DB schemas, wiki pages, or any other data source.
Fields§
§file_path: String§symbol_name: String§kind: ChunkKind§start_line: usize§end_line: usize§content: String§tokens: Vec<String>§token_count: usize§source: ContentSource§references: Vec<String>URIs or file paths that this chunk references (for cross-source graph edges).
metadata: Option<Value>Provider-specific structured metadata.
Implementations§
Trait Implementations§
Source§impl Clone for ContentChunk
impl Clone for ContentChunk
Source§fn clone(&self) -> ContentChunk
fn clone(&self) -> ContentChunk
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 ContentChunk
impl Debug for ContentChunk
Source§impl<'de> Deserialize<'de> for ContentChunk
impl<'de> Deserialize<'de> for ContentChunk
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<CodeChunk> for ContentChunk
impl From<CodeChunk> for ContentChunk
Source§impl From<ContentChunk> for CodeChunk
impl From<ContentChunk> for CodeChunk
Source§fn from(c: ContentChunk) -> Self
fn from(c: ContentChunk) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ContentChunk
impl RefUnwindSafe for ContentChunk
impl Send for ContentChunk
impl Sync for ContentChunk
impl Unpin for ContentChunk
impl UnsafeUnpin for ContentChunk
impl UnwindSafe for ContentChunk
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more