pub struct ScrapedChunk {Show 15 fields
pub chunk_id: String,
pub cadi_type: String,
pub name: String,
pub description: Option<String>,
pub source: String,
pub content_hash: String,
pub size: usize,
pub language: Option<String>,
pub concepts: Vec<String>,
pub dependencies: Vec<String>,
pub license: Option<String>,
pub parent_chunk_id: Option<String>,
pub child_chunk_ids: Vec<String>,
pub tags: Vec<String>,
pub scraped_at: String,
}Expand description
A single scraped chunk with metadata
Fields§
§chunk_id: StringChunk ID (content hash)
cadi_type: StringChunk type (source-cadi, etc)
name: StringHuman-readable name
description: Option<String>Description
source: StringSource path or URL
content_hash: StringContent hash
size: usizeFile size
language: Option<String>Language/format detected
concepts: Vec<String>Detected concepts/tags
dependencies: Vec<String>Detected dependencies
license: Option<String>License if detected
parent_chunk_id: Option<String>Parent chunk ID for hierarchical relationships
child_chunk_ids: Vec<String>Child chunk IDs
Metadata tags
scraped_at: StringTimestamp when scraped
Trait Implementations§
Source§impl Clone for ScrapedChunk
impl Clone for ScrapedChunk
Source§fn clone(&self) -> ScrapedChunk
fn clone(&self) -> ScrapedChunk
Returns a duplicate of the value. Read more
1.0.0 · 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 ScrapedChunk
impl Debug for ScrapedChunk
Source§impl<'de> Deserialize<'de> for ScrapedChunk
impl<'de> Deserialize<'de> for ScrapedChunk
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
Auto Trait Implementations§
impl Freeze for ScrapedChunk
impl RefUnwindSafe for ScrapedChunk
impl Send for ScrapedChunk
impl Sync for ScrapedChunk
impl Unpin for ScrapedChunk
impl UnwindSafe for ScrapedChunk
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