pub struct RenderOptions {
pub title: String,
pub include_default_css: bool,
pub minify: bool,
pub toc: bool,
pub syntax_highlight: bool,
pub code_copy_button: bool,
pub highlight_theme: String,
}
Expand description
Options for HTML rendering
Fields§
§title: String
Title for the HTML document
include_default_css: bool
Whether to include default CSS
minify: bool
Whether to minify HTML output
toc: bool
Whether to generate a table of contents
syntax_highlight: bool
Whether to apply syntax highlighting to code blocks
Whether to add copy buttons to code blocks
highlight_theme: String
Theme for syntax highlighting
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 · 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
Auto Trait Implementations§
impl Freeze for RenderOptions
impl RefUnwindSafe for RenderOptions
impl Send for RenderOptions
impl Sync for RenderOptions
impl Unpin 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