pub struct HeadingHierarchyOptions {
pub enabled: bool,
pub use_bookmarks: bool,
pub use_numbering: bool,
pub use_style: bool,
pub use_font_style: bool,
pub style_size_tolerance: f32,
pub max_level: u8,
pub bookmark_match_threshold: f32,
pub numbering_schemes: Option<Vec<String>>,
}Expand description
Options for the heading-hierarchy stage (docling’s
HeadingHierarchyOptions, defaults included).
Fields§
§enabled: boolMaster switch. Off by default (docling parity): all detected headings keep the assembler’s level and the output is byte-for-byte unchanged.
use_bookmarks: boolUse the PDF outline (bookmarks/ToC) as the authoritative signal.
use_numbering: boolUse legal/outline numbering for headings without a bookmark match.
use_style: boolUse visual style (font size, and below) as the last-resort signal.
use_font_style: boolRefine the style fallback with font weight/slant (from the embedded font names) and all-caps detection.
style_size_tolerance: f32Relative difference below which two heading font sizes count as one size (absorbs descender-driven measurement noise).
max_level: u8Maximum semantic heading level to assign; deeper levels clamp.
bookmark_match_threshold: f32Minimum fuzzy title similarity (0..1) for a bookmark to match a heading/list item.
numbering_schemes: Option<Vec<String>>Override of the numbering-scheme precedence (highest level first);
known schemes: part, chapter, article, roman_u, arabic,
alpha_u, alpha_l, roman_l. None = the default legal ordering.
Implementations§
Trait Implementations§
Source§impl Clone for HeadingHierarchyOptions
impl Clone for HeadingHierarchyOptions
Source§fn clone(&self) -> HeadingHierarchyOptions
fn clone(&self) -> HeadingHierarchyOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for HeadingHierarchyOptions
impl Debug for HeadingHierarchyOptions
Auto Trait Implementations§
impl Freeze for HeadingHierarchyOptions
impl RefUnwindSafe for HeadingHierarchyOptions
impl Send for HeadingHierarchyOptions
impl Sync for HeadingHierarchyOptions
impl Unpin for HeadingHierarchyOptions
impl UnsafeUnpin for HeadingHierarchyOptions
impl UnwindSafe for HeadingHierarchyOptions
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> ⓘ
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> ⓘ
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().