pub struct EndnotesConfig {
pub title: Option<String>,
pub numbering: Option<String>,
pub per_chapter: Option<bool>,
}Expand description
Endnotes configuration.
Fields§
§title: Option<String>Title for the endnotes section.
numbering: Option<String>Numbering scheme (e.g., “decimal”, “lower-roman”).
per_chapter: Option<bool>Whether to restart numbering per chapter.
Implementations§
Source§impl EndnotesConfig
impl EndnotesConfig
Sourcepub fn with_title(self, title: impl Into<String>) -> Self
pub fn with_title(self, title: impl Into<String>) -> Self
Set the endnotes section title.
Sourcepub fn with_numbering(self, numbering: impl Into<String>) -> Self
pub fn with_numbering(self, numbering: impl Into<String>) -> Self
Set the numbering scheme.
Sourcepub const fn per_chapter(self) -> Self
pub const fn per_chapter(self) -> Self
Enable per-chapter numbering.
Trait Implementations§
Source§impl Clone for EndnotesConfig
impl Clone for EndnotesConfig
Source§fn clone(&self) -> EndnotesConfig
fn clone(&self) -> EndnotesConfig
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 EndnotesConfig
impl Debug for EndnotesConfig
Source§impl Default for EndnotesConfig
impl Default for EndnotesConfig
Source§impl<'de> Deserialize<'de> for EndnotesConfig
impl<'de> Deserialize<'de> for EndnotesConfig
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
Source§impl PartialEq for EndnotesConfig
impl PartialEq for EndnotesConfig
Source§impl Serialize for EndnotesConfig
impl Serialize for EndnotesConfig
impl Eq for EndnotesConfig
impl StructuralPartialEq for EndnotesConfig
Auto Trait Implementations§
impl Freeze for EndnotesConfig
impl RefUnwindSafe for EndnotesConfig
impl Send for EndnotesConfig
impl Sync for EndnotesConfig
impl Unpin for EndnotesConfig
impl UnsafeUnpin for EndnotesConfig
impl UnwindSafe for EndnotesConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.