pub enum EscapeMode {
Html,
Text,
}Expand description
Controls auto-escaping behavior.
Html— auto-escapes{{ ... }}output (&,<,>,",')Text— no escaping, raw output
Variants§
Trait Implementations§
Source§impl Clone for EscapeMode
impl Clone for EscapeMode
Source§fn clone(&self) -> EscapeMode
fn clone(&self) -> EscapeMode
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 moreAuto Trait Implementations§
impl Freeze for EscapeMode
impl RefUnwindSafe for EscapeMode
impl Send for EscapeMode
impl Sync for EscapeMode
impl Unpin for EscapeMode
impl UnsafeUnpin for EscapeMode
impl UnwindSafe for EscapeMode
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