pub struct DocumentResult {
pub filepath: String,
pub display_path: String,
pub title: String,
pub context: Option<String>,
pub hash: String,
pub docid: String,
pub collection_name: String,
pub path: String,
pub modified_at: String,
pub body_length: usize,
pub body: Option<String>,
}Expand description
Document result with all metadata.
Fields§
§filepath: StringFull filesystem path.
display_path: StringShort display path.
title: StringDocument title.
context: Option<String>Folder context description if configured.
hash: StringContent hash.
docid: StringShort docid (first 6 chars of hash).
collection_name: StringParent collection name.
path: StringRelative path within collection.
modified_at: StringLast modification timestamp.
body_length: usizeBody length in bytes.
body: Option<String>Document body (optional).
Trait Implementations§
Source§impl Clone for DocumentResult
impl Clone for DocumentResult
Source§fn clone(&self) -> DocumentResult
fn clone(&self) -> DocumentResult
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 moreAuto Trait Implementations§
impl Freeze for DocumentResult
impl RefUnwindSafe for DocumentResult
impl Send for DocumentResult
impl Sync for DocumentResult
impl Unpin for DocumentResult
impl UnwindSafe for DocumentResult
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