pub struct PreparedDoc {
pub rel_path: String,
pub slug: String,
pub title: String,
pub description: Option<String>,
pub body_md: String,
}Expand description
A document after pass 1: frontmatter parsed, slug/title derived, raw body kept.
Fields§
§rel_path: String§slug: String§title: String§description: Option<String>Optional description: from frontmatter, surfaced in backlink cards.
body_md: StringTrait Implementations§
Source§impl Clone for PreparedDoc
impl Clone for PreparedDoc
Source§fn clone(&self) -> PreparedDoc
fn clone(&self) -> PreparedDoc
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PreparedDoc
impl Debug for PreparedDoc
Source§impl PartialEq for PreparedDoc
impl PartialEq for PreparedDoc
Source§fn eq(&self, other: &PreparedDoc) -> bool
fn eq(&self, other: &PreparedDoc) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PreparedDoc
Auto Trait Implementations§
impl Freeze for PreparedDoc
impl RefUnwindSafe for PreparedDoc
impl Send for PreparedDoc
impl Sync for PreparedDoc
impl Unpin for PreparedDoc
impl UnsafeUnpin for PreparedDoc
impl UnwindSafe for PreparedDoc
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more