Skip to main content

Module epub_options

Module epub_options 

Source
Expand description

Book-level metadata for EPUB export.

Unlike super::docx_options::DocxExportOptions (page geometry + typography — DOCX has no notion of “book metadata”), an EPUB package is built around exactly this: title, author, language, and reading direction are OPF/package-level metadata fields, not per-block formatting. There is no “plain” EPUB the way to_docx has docx-rs’s built-in defaults — every field here lands somewhere in the generated .epub, so Default picks the most harmless values (“Untitled” title, empty author, en language, LTR) rather than leaving them unset.

Structs§

EpubExportOptions
Book-level metadata for an EPUB export. Every field is required by the container format in some form, so unlike super::docx_options::DocxExportOptions there is no “no overrides” default that matches an unconfigured EPUB — Default instead picks the most reasonable placeholders.