pub struct IndexedFileText {
pub path: String,
pub content_hash: Option<String>,
pub byte_count: usize,
pub line_count: usize,
pub content: String,
}Expand description
UTF-8 source text persisted for indexed search.
Fields§
§path: StringRepository-relative file path using forward slashes.
content_hash: Option<String>BLAKE3 content hash from the scanned file node.
byte_count: usizeUTF-8 byte count stored for telemetry.
line_count: usizeNumber of text lines stored for context extraction.
content: StringFull UTF-8 source text used by indexed search.
Trait Implementations§
Source§impl Clone for IndexedFileText
impl Clone for IndexedFileText
Source§fn clone(&self) -> IndexedFileText
fn clone(&self) -> IndexedFileText
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 IndexedFileText
impl Debug for IndexedFileText
Source§impl<'de> Deserialize<'de> for IndexedFileText
impl<'de> Deserialize<'de> for IndexedFileText
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 PartialEq for IndexedFileText
impl PartialEq for IndexedFileText
Source§impl Serialize for IndexedFileText
impl Serialize for IndexedFileText
impl Eq for IndexedFileText
impl StructuralPartialEq for IndexedFileText
Auto Trait Implementations§
impl Freeze for IndexedFileText
impl RefUnwindSafe for IndexedFileText
impl Send for IndexedFileText
impl Sync for IndexedFileText
impl Unpin for IndexedFileText
impl UnwindSafe for IndexedFileText
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more