pub struct ScannedFile {
pub relative_path: String,
pub absolute_path: PathBuf,
pub content: String,
pub content_hash: String,
pub title: String,
pub slug: String,
}Expand description
A markdown file discovered during a vault scan.
Fields§
§relative_path: StringRelative path from vault root, always using forward slashes.
absolute_path: PathBufAbsolute path on disk.
content: StringRaw markdown content.
content_hash: StringSHA-256 hex digest of content.
title: StringHuman title derived from filename (e.g. “My Page”).
slug: StringNormalized slug (e.g. “my-page” or “folder/my-page”).
Trait Implementations§
Source§impl Clone for ScannedFile
impl Clone for ScannedFile
Source§fn clone(&self) -> ScannedFile
fn clone(&self) -> ScannedFile
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 ScannedFile
impl RefUnwindSafe for ScannedFile
impl Send for ScannedFile
impl Sync for ScannedFile
impl Unpin for ScannedFile
impl UnsafeUnpin for ScannedFile
impl UnwindSafe for ScannedFile
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