pub struct FileTextMetadata {
pub path: String,
pub content_hash: Option<String>,
pub byte_count: usize,
pub line_count: usize,
pub classification: ContentClassification,
}Expand description
Persisted file metadata available before source-content decoding.
Fields§
§path: StringRepository-relative file path using forward slashes.
content_hash: Option<String>BLAKE3 content hash from the scanned file node.
byte_count: usizePersisted UTF-8 source byte count.
line_count: usizePersisted line count.
classification: ContentClassificationClosed content role available before source decoding.
Trait Implementations§
Source§impl Clone for FileTextMetadata
impl Clone for FileTextMetadata
Source§fn clone(&self) -> FileTextMetadata
fn clone(&self) -> FileTextMetadata
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 FileTextMetadata
impl Debug for FileTextMetadata
impl Eq for FileTextMetadata
Source§impl PartialEq for FileTextMetadata
impl PartialEq for FileTextMetadata
Source§fn eq(&self, other: &FileTextMetadata) -> bool
fn eq(&self, other: &FileTextMetadata) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FileTextMetadata
Auto Trait Implementations§
impl Freeze for FileTextMetadata
impl RefUnwindSafe for FileTextMetadata
impl Send for FileTextMetadata
impl Sync for FileTextMetadata
impl Unpin for FileTextMetadata
impl UnsafeUnpin for FileTextMetadata
impl UnwindSafe for FileTextMetadata
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.