pub struct HtmlOptions<'a> {
pub path: Option<&'a str>,
pub url: Option<&'a str>,
pub content: Option<&'a str>,
pub title: Option<&'a str>,
pub height: Option<Value>,
}Expand description
Options for an embedded-HTML doc entry (DocEntry::html).
Exactly one of path, url, or content must be Some. Build with
HtmlOptions::default and set the fields you need.
Fields§
§path: Option<&'a str>Local HTML file path (inlined into the report by default).
url: Option<&'a str>Remote URL rendered via iframe src.
content: Option<&'a str>Inline HTML content rendered via iframe srcdoc.
title: Option<&'a str>Title shown in the embed’s chrome bar.
height: Option<Value>Iframe height: a JSON number → px, a JSON string passed through (e.g. “60vh”). Default 400px.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for HtmlOptions<'a>
impl<'a> RefUnwindSafe for HtmlOptions<'a>
impl<'a> Send for HtmlOptions<'a>
impl<'a> Sync for HtmlOptions<'a>
impl<'a> Unpin for HtmlOptions<'a>
impl<'a> UnsafeUnpin for HtmlOptions<'a>
impl<'a> UnwindSafe for HtmlOptions<'a>
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