#[non_exhaustive]pub struct HtmlConfig {
pub img_link: bool,
pub img_thumbnail_suffix: Option<String>,
}Expand description
A structure describing the configuration of an HTML Visitor.
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.img_link: boolPlace <img> tags inside <a> tags linking to the photo file.
img_thumbnail_suffix: Option<String>Add a suffix to source URIs in <img> tags.
Implementations§
Source§impl HtmlConfig
impl HtmlConfig
Sourcepub fn with_img_link(self) -> Self
pub fn with_img_link(self) -> Self
Set the img_link field to true.
Sourcepub fn with_img_thumnail_suffix(self, suffix: &str) -> Self
pub fn with_img_thumnail_suffix(self, suffix: &str) -> Self
Set the img_thumbnail_suffix field.
Trait Implementations§
Source§impl Debug for HtmlConfig
impl Debug for HtmlConfig
Source§impl Default for HtmlConfig
impl Default for HtmlConfig
Source§fn default() -> HtmlConfig
fn default() -> HtmlConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for HtmlConfig
impl RefUnwindSafe for HtmlConfig
impl Send for HtmlConfig
impl Sync for HtmlConfig
impl Unpin for HtmlConfig
impl UnwindSafe for HtmlConfig
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