pub struct RenderedDoc {
pub doc: Doc,
pub search_text: String,
pub resolved_links: Vec<String>,
}Expand description
A single rendered doc plus the by-products the site assembly needs: its
search plaintext and the slugs it links out to (for the link graph). Returned
by render_doc so both the whole-site build and the editor live-preview run
the same per-doc pipeline rather than two drifting copies.
Fields§
§doc: Doc§search_text: StringPlaintext extracted from the pristine AST (no markup), for the search index.
resolved_links: Vec<String>Resolved outbound wikilink target slugs, in document order (for the graph).
Auto Trait Implementations§
impl Freeze for RenderedDoc
impl RefUnwindSafe for RenderedDoc
impl Send for RenderedDoc
impl Sync for RenderedDoc
impl Unpin for RenderedDoc
impl UnsafeUnpin for RenderedDoc
impl UnwindSafe for RenderedDoc
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> 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