pub struct RendererConfig {
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
Renderer configuration
Fields§
§title: String
Default document title
include_default_css: bool
Include default CSS
minify: bool
Minify HTML output
toc: bool
Generate table of contents
syntax_highlight: bool
Apply syntax highlighting to code blocks
Add copy buttons to code blocks
highlight_theme: String
Theme for syntax highlighting
Trait Implementations§
Source§impl Clone for RendererConfig
impl Clone for RendererConfig
Source§fn clone(&self) -> RendererConfig
fn clone(&self) -> RendererConfig
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 RendererConfig
impl Debug for RendererConfig
Source§impl Default for RendererConfig
impl Default for RendererConfig
Source§impl<'de> Deserialize<'de> for RendererConfig
impl<'de> Deserialize<'de> for RendererConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RendererConfig
impl RefUnwindSafe for RendererConfig
impl Send for RendererConfig
impl Sync for RendererConfig
impl Unpin for RendererConfig
impl UnwindSafe for RendererConfig
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