pub struct LayoutInput {
pub document: CT_Document,
pub styles: CT_Styles,
pub numbering: Option<CT_Numbering>,
pub headers: HashMap<String, CT_HdrFtr>,
pub footers: HashMap<String, CT_HdrFtr>,
pub images: HashMap<String, ImageData>,
pub core_properties: Option<CoreProperties>,
pub hyperlink_urls: HashMap<String, String>,
pub footnotes: Option<CT_Footnotes>,
pub endnotes: Option<CT_Footnotes>,
pub theme: Option<Theme>,
pub fonts: Vec<FontFile>,
}Expand description
All inputs needed to lay out a DOCX document.
Fields§
§document: CT_DocumentThe parsed document content.
styles: CT_StylesStyle definitions.
numbering: Option<CT_Numbering>Numbering definitions (optional).
headers: HashMap<String, CT_HdrFtr>Header parts keyed by relationship ID.
Footer parts keyed by relationship ID.
images: HashMap<String, ImageData>Images keyed by embed ID.
core_properties: Option<CoreProperties>Document core properties (metadata).
hyperlink_urls: HashMap<String, String>Hyperlink URLs keyed by relationship ID.
footnotes: Option<CT_Footnotes>Footnote definitions.
endnotes: Option<CT_Footnotes>Endnote definitions.
theme: Option<Theme>Document theme (colors + fonts).
fonts: Vec<FontFile>User-provided or DOCX-embedded font files. These are loaded before system fonts, so they take priority.
Trait Implementations§
Source§impl Clone for LayoutInput
impl Clone for LayoutInput
Source§fn clone(&self) -> LayoutInput
fn clone(&self) -> LayoutInput
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 moreAuto Trait Implementations§
impl Freeze for LayoutInput
impl RefUnwindSafe for LayoutInput
impl Send for LayoutInput
impl Sync for LayoutInput
impl Unpin for LayoutInput
impl UnsafeUnpin for LayoutInput
impl UnwindSafe for LayoutInput
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