pub enum EscapeFn {
None,
Html,
Custom(CustomEscapeFn),
}
Expand description
Specifies how to escape template variables prior to rendering.
Variants§
None
The default setting. Doesn’t change the variables at all.
Html
Escape anything that looks like HTML. This is recommended when rendering HTML templates with user-provided data.
Custom(CustomEscapeFn)
Escape using a custom function.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EscapeFn
impl !RefUnwindSafe for EscapeFn
impl Send for EscapeFn
impl Sync for EscapeFn
impl Unpin for EscapeFn
impl !UnwindSafe for EscapeFn
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