pub struct HtmlConfigBuilder { /* private fields */ }
Expand description
Builder for constructing HtmlConfig
instances.
Provides a fluent interface for creating and customizing HTML configuration options.
Implementations§
Source§impl HtmlConfigBuilder
impl HtmlConfigBuilder
Sourcepub fn with_syntax_highlighting(
self,
enable: bool,
theme: Option<String>,
) -> Self
pub fn with_syntax_highlighting( self, enable: bool, theme: Option<String>, ) -> Self
Enables or disables syntax highlighting for code blocks.
§Arguments
enable
- Whether to enable syntax highlightingtheme
- Optional theme name for syntax highlighting
Sourcepub fn with_language(self, language: impl Into<String>) -> Self
pub fn with_language(self, language: impl Into<String>) -> Self
Sourcepub fn build(self) -> Result<HtmlConfig>
pub fn build(self) -> Result<HtmlConfig>
Builds the configuration, validating all settings.
§Returns
Returns the validated configuration or an error if validation fails.
Trait Implementations§
Source§impl Debug for HtmlConfigBuilder
impl Debug for HtmlConfigBuilder
Source§impl Default for HtmlConfigBuilder
impl Default for HtmlConfigBuilder
Source§fn default() -> HtmlConfigBuilder
fn default() -> HtmlConfigBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for HtmlConfigBuilder
impl RefUnwindSafe for HtmlConfigBuilder
impl Send for HtmlConfigBuilder
impl Sync for HtmlConfigBuilder
impl Unpin for HtmlConfigBuilder
impl UnwindSafe for HtmlConfigBuilder
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
§fn deserialize(
&self,
deserializer: &mut D,
) -> Result<With<T, W>, <D as Fallible>::Error>
fn deserialize( &self, deserializer: &mut D, ) -> Result<With<T, W>, <D as Fallible>::Error>
Deserializes using the given deserializer
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