#[non_exhaustive]pub enum SafeRawHtmlForm {
EscapeText,
OmitPlaceholder,
}Expand description
How raw HTML is handled in safe mode (when allow_dangerous_html is off).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
EscapeText
Escape raw HTML as text. This is the default safe form and uses the CommonMark/micromark link-scheme allowlist for unknown URI schemes.
OmitPlaceholder
Emit the GFM raw-HTML placeholder. This matches cmark-gfm oracle conventions, including its link-scheme denylist for unknown URI schemes.
Trait Implementations§
Source§impl Clone for SafeRawHtmlForm
impl Clone for SafeRawHtmlForm
Source§fn clone(&self) -> SafeRawHtmlForm
fn clone(&self) -> SafeRawHtmlForm
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SafeRawHtmlForm
Source§impl Debug for SafeRawHtmlForm
impl Debug for SafeRawHtmlForm
impl Eq for SafeRawHtmlForm
Source§impl PartialEq for SafeRawHtmlForm
impl PartialEq for SafeRawHtmlForm
Source§fn eq(&self, other: &SafeRawHtmlForm) -> bool
fn eq(&self, other: &SafeRawHtmlForm) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SafeRawHtmlForm
Auto Trait Implementations§
impl Freeze for SafeRawHtmlForm
impl RefUnwindSafe for SafeRawHtmlForm
impl Send for SafeRawHtmlForm
impl Sync for SafeRawHtmlForm
impl Unpin for SafeRawHtmlForm
impl UnsafeUnpin for SafeRawHtmlForm
impl UnwindSafe for SafeRawHtmlForm
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