pub struct SourcePage {
pub source_path: PathBuf,
pub relative_path: PathBuf,
pub front_matter: FrontMatter,
pub body: String,
}Expand description
A Markdown source file discovered on disk with parsed front matter.
This is the input to the compilation pipeline. The raw Markdown body has not yet been converted to HTML.
Fields§
§source_path: PathBufAbsolute or project-relative path to the source .md file.
relative_path: PathBufPath relative to the content root, used to derive output URLs.
front_matter: FrontMatterParsed YAML front matter (defaults applied for missing keys).
body: StringMarkdown body after front matter extraction.
Trait Implementations§
Source§impl Clone for SourcePage
impl Clone for SourcePage
Source§fn clone(&self) -> SourcePage
fn clone(&self) -> SourcePage
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 SourcePage
impl Debug for SourcePage
impl Eq for SourcePage
Source§impl PartialEq for SourcePage
impl PartialEq for SourcePage
impl StructuralPartialEq for SourcePage
Auto Trait Implementations§
impl Freeze for SourcePage
impl RefUnwindSafe for SourcePage
impl Send for SourcePage
impl Sync for SourcePage
impl Unpin for SourcePage
impl UnsafeUnpin for SourcePage
impl UnwindSafe for SourcePage
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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