Enum quick_xml::se::QuoteLevel
source · 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<QuoteLevel> for QuoteLevel
impl PartialEq<QuoteLevel> for QuoteLevel
source§fn eq(&self, other: &QuoteLevel) -> bool
fn eq(&self, other: &QuoteLevel) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.