pub struct DiffContext<'a> {
pub tree: &'a [TreeNode],
pub base: &'a str,
pub site_title: &'a str,
pub search_enabled: bool,
}Expand description
Everything the /diff/ workspace shell render needs. The diff data itself
is not templated — it ships as timeline.json + revisions/<id>.json and
is hydrated client-side by islands/diff.js into #docgen-diff-root.
Fields§
§tree: &'a [TreeNode]§base: &'a strDeployed base path (e.g. /docs); "" → no <base> tag (default).
site_title: &'a strSite title; "" → no "page — site" suffix (default).
search_enabled: boolWhether the search UI ships (gates the trigger + search.js).
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for DiffContext<'a>
impl<'a> RefUnwindSafe for DiffContext<'a>
impl<'a> Send for DiffContext<'a>
impl<'a> Sync for DiffContext<'a>
impl<'a> Unpin for DiffContext<'a>
impl<'a> UnsafeUnpin for DiffContext<'a>
impl<'a> UnwindSafe for DiffContext<'a>
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