pub struct HeadingOptions {
pub add_ids: bool,
pub id_prefix: String,
pub level_classes: HashMap<u8, String>,
}
Expand description
Configuration options for headings
Fields§
§add_ids: bool
Whether to add IDs to headings
id_prefix: String
Prefix to use for heading IDs
level_classes: HashMap<u8, String>
CSS classes to add to different heading levels
Trait Implementations§
Source§impl Clone for HeadingOptions
impl Clone for HeadingOptions
Source§fn clone(&self) -> HeadingOptions
fn clone(&self) -> HeadingOptions
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 HeadingOptions
impl Debug for HeadingOptions
Source§impl<'de> Deserialize<'de> for HeadingOptions
impl<'de> Deserialize<'de> for HeadingOptions
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 HeadingOptions
impl RefUnwindSafe for HeadingOptions
impl Send for HeadingOptions
impl Sync for HeadingOptions
impl Unpin for HeadingOptions
impl UnwindSafe for HeadingOptions
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