pub struct DocSource {
pub title: String,
pub type_: String,
pub tags: Vec<String>,
pub text: String,
}Expand description
A document ready to index: its searchable text plus the metadata carried into search results.
Fields§
§title: StringHuman title (frontmatter title, else the file stem).
type_: StringOKF type.
Tags.
text: StringThe full searchable text (frontmatter fields + body).
Trait Implementations§
impl Eq for DocSource
impl StructuralPartialEq for DocSource
Auto Trait Implementations§
impl Freeze for DocSource
impl RefUnwindSafe for DocSource
impl Send for DocSource
impl Sync for DocSource
impl Unpin for DocSource
impl UnsafeUnpin for DocSource
impl UnwindSafe for DocSource
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