pub enum QuoteLevel {
Full,
Partial,
Minimal,
}
Available on crate feature
serialize
only.Expand description
Defines which characters would be escaped in Text
events and attribute
values.
Variants§
Full
Performs escaping, escape all characters that could have special meaning in the XML. This mode is compatible with SGML specification.
Characters that will be replaced:
Original | Replacement |
---|---|
< | < |
> | > |
& | & |
" | " |
' | ' |
Partial
Performs escaping that is compatible with SGML specification.
This level adds escaping of >
to the Minimal
level, which is required
for compatibility with SGML.
Characters that will be replaced:
Original | Replacement |
---|---|
< | < |
> | > |
& | & |
Minimal
Performs the minimal possible escaping, escape only strictly necessary characters.
Characters that will be replaced:
Original | Replacement |
---|---|
< | < |
& | & |
Trait Implementations§
Source§impl Clone for QuoteLevel
impl Clone for QuoteLevel
Source§fn clone(&self) -> QuoteLevel
fn clone(&self) -> QuoteLevel
Returns a copy 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 QuoteLevel
impl Debug for QuoteLevel
Source§impl PartialEq for QuoteLevel
impl PartialEq for QuoteLevel
impl Copy for QuoteLevel
impl Eq for QuoteLevel
impl StructuralPartialEq for QuoteLevel
Auto Trait Implementations§
impl Freeze for QuoteLevel
impl RefUnwindSafe for QuoteLevel
impl Send for QuoteLevel
impl Sync for QuoteLevel
impl Unpin for QuoteLevel
impl UnwindSafe for QuoteLevel
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