pub struct RenderOptions {
pub audit_content: bool,
}Expand description
Opt-in per-render checks. Default disables everything, and every
disabled check costs nothing — the flag is tested once per render.
Deserializes from the camelCase JSON the JS wrappers send
({"auditContent": true}), unknown fields ignored so older engines
tolerate newer wrappers.
Fields§
§audit_content: boolPost-render content audit: after layout, verify the laid-out pages
against the input document and report content that was dropped,
rendered fully off-page, painted in its background’s exact colour,
or clipped to a zero-size box — through the render-defect channel
(render defect: ... warnings), like every other case where the
engine’s output differs from what the document asked for.
Trait Implementations§
Source§impl Clone for RenderOptions
impl Clone for RenderOptions
impl Copy for RenderOptions
Source§impl Debug for RenderOptions
impl Debug for RenderOptions
Source§impl Default for RenderOptions
impl Default for RenderOptions
Source§impl<'de> Deserialize<'de> for RenderOptionswhere
RenderOptions: Default,
impl<'de> Deserialize<'de> for RenderOptionswhere
RenderOptions: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RenderOptions
impl RefUnwindSafe for RenderOptions
impl Send for RenderOptions
impl Sync for RenderOptions
impl Unpin for RenderOptions
impl UnsafeUnpin for RenderOptions
impl UnwindSafe for RenderOptions
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