pub struct RenderOptions {
pub base: String,
pub default_view_name: String,
pub interactive: bool,
pub block_index: usize,
}Expand description
Rendering configuration supplied by the host (docgen).
Fields§
§base: StringSite base path (e.g. /docs or empty) prefixed onto internal note URLs.
default_view_name: StringFallback title used for a view with no name.
interactive: boolWhen true, emit the interactive DOM hooks + JSON payload the client-side
island hydrates against. When false, output is byte-for-byte the pure
static HTML (no data-* hooks, no payload script).
block_index: usizeWhich base on the page this is: 0 for a standalone .base, else the index
of the ```base block. Views number from 0 within their own base, so the
emitted data-base-view is {block_index}-{view_index} — the island keys
URL-hash segments and facet-panel DOM ids off that string, and two blocks
on one page would otherwise both claim 0 and clobber each other.
Trait Implementations§
Source§impl Clone for RenderOptions
impl Clone for RenderOptions
Source§fn clone(&self) -> RenderOptions
fn clone(&self) -> RenderOptions
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 RenderOptions
impl Debug for RenderOptions
Source§impl Default for RenderOptions
impl Default for RenderOptions
Source§fn default() -> RenderOptions
fn default() -> RenderOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RenderOptions
impl RefUnwindSafe for RenderOptions
impl Send for RenderOptions
impl Sync for RenderOptions
impl Unpin for RenderOptions
impl UnsafeUnpin for RenderOptions
impl UnwindSafe for RenderOptions
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