#[non_exhaustive]pub struct Options {
pub now: Option<DateTime>,
pub configuration: Configuration,
pub limits: Limits,
}Expand description
Choices for opening a document that the document itself does not make. Start from
Options::default and set the fields that differ, so that a new field breaks no caller.
The default lays out for the default target with its defaults.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.now: Option<DateTime>The local date and time that DATE and TIME fields show, as Word shows the time of
printing. Without it, they show the results stored in the file, so that the same file
always gives the same pages.
configuration: ConfigurationThe configuration of the pages: the target and the setup of Word’s machine, such as the
resolution of the printer that Word lays out for (Configuration::of).
limits: LimitsThe limits that protect the readers against a hostile file: those of the ZIP file and
those of each XML part. A limit of the ZIP file that the file breaks stops the document
(Error::Package), with an error that names the limit. An XML part that breaks a limit
does not read, and the part policy decides: the main document part and the package’s
relationships stop the document (Error::Docx), and another part is skipped with a
warning.
Trait Implementations§
impl Eq for Options
impl StructuralPartialEq for Options
Auto Trait Implementations§
impl Forget for Options
impl Freeze for Options
impl Move for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnsafeUnpin for Optionswhere
NonZeroU32Inner: UnsafeUnpin,
*const LeafNode<String, bool> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, bool)>>: UnsafeUnpin,
*const LeafNode<String, String> is !null: UnsafeUnpin,
PhantomData<Box<(String, String)>>: UnsafeUnpin,
impl UnwindSafe for Optionswhere
NonZero<u32>: UnwindSafe,
BTreeMap<String, bool>: UnwindSafe,
BTreeMap<String, String>: UnwindSafe,
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
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
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
T, using the provided data to resolve any offsets.