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§fn clone(&self) -> HtmlExportOptions
fn clone(&self) -> HtmlExportOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 HtmlExportOptions
impl Debug for HtmlExportOptions
Source§impl Default for HtmlExportOptions
impl Default for HtmlExportOptions
Source§fn default() -> HtmlExportOptions
fn default() -> HtmlExportOptions
Returns the “default value” for a type. Read more
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
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<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.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 moreSource§impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
fn into_sample(self) -> T
Source§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>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().