#[non_exhaustive]pub struct DocxOptions {
pub reference_doc: Option<Vec<u8>>,
pub source_date_epoch: Option<i64>,
pub locale: Option<String>,
}Expand description
Options for the DOCX container writer. Ignored by every other writer. The default produces a self-contained document from the built-in template, with reproducible property timestamps and a language tag drawn from the document or the environment.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.reference_doc: Option<Vec<u8>>A reference document, as raw .docx bytes, whose styling parts and document template are
reused while the converted content replaces its body. None uses the built-in template.
source_date_epoch: Option<i64>Seconds since the Unix epoch fixing the document’s property timestamps. None uses a fixed
epoch so output stays byte-reproducible.
locale: Option<String>The process locale (the LANG environment variable) whose language tag stands in when the
document names no lang. None falls back to en-US, keeping output independent of the
environment.
Trait Implementations§
Source§impl Clone for DocxOptions
impl Clone for DocxOptions
Source§fn clone(&self) -> DocxOptions
fn clone(&self) -> DocxOptions
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 DocxOptions
impl Debug for DocxOptions
Source§impl Default for DocxOptions
impl Default for DocxOptions
Source§fn default() -> DocxOptions
fn default() -> DocxOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DocxOptions
impl RefUnwindSafe for DocxOptions
impl Send for DocxOptions
impl Sync for DocxOptions
impl Unpin for DocxOptions
impl UnsafeUnpin for DocxOptions
impl UnwindSafe for DocxOptions
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