pub struct Chrome {
pub nav: Vec<NavGroup>,
pub active_route: String,
pub toc: Vec<TocEntry>,
pub prev: Option<(String, String)>,
pub next: Option<(String, String)>,
pub search_island: Option<String>,
pub search_index: Option<String>,
pub search_wasm: Option<String>,
pub search_bin: Option<String>,
pub accent: Option<String>,
}Expand description
Everything the layout needs to wrap one page.
Fields§
Sidebar groups, in display order.
active_route: StringThis page’s route (marks the active nav item).
toc: Vec<TocEntry>This page’s TOC (h2/h3 with anchors), possibly empty.
prev: Option<(String, String)>Previous page: (route, title).
next: Option<(String, String)>Next page: (route, title).
search_island: Option<String>Search island chunk URL. Site-relative values (leading /) are
prefixed with the base path like every other URL; absolute URLs
pass through untouched.
search_index: Option<String>The search corpus URL handed to the island via props. Prefixed with the base path like every other site-relative link.
search_wasm: Option<String>The docs_search.wasm reader module URL (site-relative; prefixed like search_index). Empty = the island runs JSON-only scoring.
search_bin: Option<String>The FST binary index URL (site-relative; prefixed).
accent: Option<String>Accent color override (#rgb/#rrggbb), from site.toml.
None = the default palette.
Trait Implementations§
impl StructuralPartialEq for Chrome
Auto Trait Implementations§
impl Forget for Chrome
impl Freeze for Chrome
impl Move for Chrome
impl RefUnwindSafe for Chrome
impl Send for Chrome
impl Sync for Chrome
impl Unpin for Chrome
impl UnsafeUnpin for Chrome
impl UnwindSafe for Chrome
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> GetSetFdFlags for T
impl<T> GetSetFdFlags for T
Source§fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
self file descriptor.Source§fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
Source§fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: Sized + AsFilelike,
fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: Sized + AsFilelike,
self file descriptor. Read moreSource§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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> ⓘ
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> ⓘ
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