pub struct FileEntry {
pub name: String,
pub hash: String,
pub display_name: String,
pub ctime: i64,
pub has_content: bool,
pub is_dir: bool,
pub parent_dir: String,
}Expand description
A file or directory entry in the knowledge base.
Fields§
§name: StringFilename with extension (e.g., “Rust.md”).
hash: StringMD5 hash (first 11 characters) for compact identification.
display_name: StringDisplay name: capitalized, without extension.
ctime: i64Creation/modification time in milliseconds since epoch.
has_content: boolWhether the file has non-whitespace content.
is_dir: boolWhether this is a directory.
parent_dir: StringParent directory path.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FileEntry
impl<'de> Deserialize<'de> for FileEntry
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 FileEntry
impl RefUnwindSafe for FileEntry
impl Send for FileEntry
impl Sync for FileEntry
impl Unpin for FileEntry
impl UnsafeUnpin for FileEntry
impl UnwindSafe for FileEntry
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