pub struct HtmlOptions {
pub line_breaks: LineBreaks,
pub images: Images,
pub schemes: Option<Vec<String>>,
}Expand description
The browser channel’s policy. The defaults are the most conservative — <br> line breaks,
images as links only, and only http, https, and mailto links.
Fields§
§line_breaks: LineBreaks§images: Images§schemes: Option<Vec<String>>Schemes accepted for link and image URLs (without the colon, like "https"). None
means http, https, and mailto. A list accepts only those — it does not add to the
defaults.
Trait Implementations§
Source§impl Clone for HtmlOptions
impl Clone for HtmlOptions
Source§impl Debug for HtmlOptions
impl Debug for HtmlOptions
Source§impl Default for HtmlOptions
impl Default for HtmlOptions
impl Eq for HtmlOptions
Source§impl PartialEq for HtmlOptions
impl PartialEq for HtmlOptions
impl StructuralPartialEq for HtmlOptions
Auto Trait Implementations§
impl Freeze for HtmlOptions
impl RefUnwindSafe for HtmlOptions
impl Send for HtmlOptions
impl Sync for HtmlOptions
impl Unpin for HtmlOptions
impl UnsafeUnpin for HtmlOptions
impl UnwindSafe for HtmlOptions
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