pub struct Doc {
pub path: String,
pub title: String,
pub description: String,
pub category: String,
pub order: Option<i64>,
pub tags: Vec<String>,
pub source: Source,
pub text: String,
}Expand description
One document.
Fields§
§path: StringPath from the library root, e.g. skills/review.md.
title: String§description: String§category: StringThe folder it is in ("" for the root), e.g. reference/motion.
order: Option<i64>§source: Source§text: StringThe file, verbatim (frontmatter included).
Trait Implementations§
impl Eq for Doc
impl StructuralPartialEq for Doc
Auto Trait Implementations§
impl Freeze for Doc
impl RefUnwindSafe for Doc
impl Send for Doc
impl Sync for Doc
impl Unpin for Doc
impl UnsafeUnpin for Doc
impl UnwindSafe for Doc
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