pub struct Config {
pub max_html_bytes: usize,
pub max_md_chars: usize,
pub extra_tags: HashSet<String>,
}Expand description
Configuration for the sanitizer.
Fields§
§max_html_bytes: usizeMax HTML input size in bytes before truncation.
max_md_chars: usizeMax markdown output length in chars.
Additional tags to allow beyond the default email set.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Config
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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