pub struct HtmlExportOptions {
pub image_mode: ImageMode,
pub artifacts_dir: String,
pub layers: ContentLayers,
}Expand description
Options of the HTML export (DoclingDocument::export_to_html_with):
docling-core’s HTMLParams subset the port honours. Default is
upstream’s default export — placeholder images, artifacts as the
referenced-image directory, the body layer only.
Fields§
§image_mode: ImageModeHow pictures render (HTMLParams.image_mode): nothing but captions
and meta for ImageMode::Placeholder, data: URIs when embedded,
<img src> paths under artifacts_dir when
referenced.
artifacts_dir: StringThe directory referenced images are named under, the Markdown
export’s convention (<artifacts_dir>/image_NNNNNN.<ext>).
layers: ContentLayersThe content layers rendered (HTMLParams.layers, #499): an item on a
layer outside the set is skipped, its children still walked — exactly
how docling-core’s get_excluded_refs reads the set.
Trait Implementations§
Source§impl Clone for HtmlExportOptions
impl Clone for HtmlExportOptions
Source§impl Debug for HtmlExportOptions
impl Debug for HtmlExportOptions
Source§impl Default for HtmlExportOptions
impl Default for HtmlExportOptions
impl Eq for HtmlExportOptions
Source§impl PartialEq for HtmlExportOptions
impl PartialEq for HtmlExportOptions
impl StructuralPartialEq for HtmlExportOptions
Auto Trait Implementations§
impl Freeze for HtmlExportOptions
impl RefUnwindSafe for HtmlExportOptions
impl Send for HtmlExportOptions
impl Sync for HtmlExportOptions
impl Unpin for HtmlExportOptions
impl UnsafeUnpin for HtmlExportOptions
impl UnwindSafe for HtmlExportOptions
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.