pub enum HtmlCleaningMode {
Default,
Aggressive,
Minimal,
Raw,
}Expand description
HTML cleaning mode.
Variants§
Default
Standard cleaning - removes scripts, styles, comments.
Aggressive
Aggressive cleaning - also removes SVGs, images, etc.
Minimal
Minimal cleaning - only removes scripts.
Raw
No cleaning - raw HTML.
Trait Implementations§
Source§impl Clone for HtmlCleaningMode
impl Clone for HtmlCleaningMode
Source§fn clone(&self) -> HtmlCleaningMode
fn clone(&self) -> HtmlCleaningMode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HtmlCleaningMode
impl Debug for HtmlCleaningMode
Source§impl Default for HtmlCleaningMode
impl Default for HtmlCleaningMode
Source§fn default() -> HtmlCleaningMode
fn default() -> HtmlCleaningMode
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for HtmlCleaningMode
impl<'de> Deserialize<'de> for HtmlCleaningMode
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
Source§impl PartialEq for HtmlCleaningMode
impl PartialEq for HtmlCleaningMode
Source§impl Serialize for HtmlCleaningMode
impl Serialize for HtmlCleaningMode
impl Copy for HtmlCleaningMode
impl Eq for HtmlCleaningMode
impl StructuralPartialEq for HtmlCleaningMode
Auto Trait Implementations§
impl Freeze for HtmlCleaningMode
impl RefUnwindSafe for HtmlCleaningMode
impl Send for HtmlCleaningMode
impl Sync for HtmlCleaningMode
impl Unpin for HtmlCleaningMode
impl UnwindSafe for HtmlCleaningMode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.