pub struct ParseOptions { /* private fields */ }
Implementations§
Source§impl ParseOptions
impl ParseOptions
pub fn default() -> Self
Sourcepub fn allow_backslash_quotes(&mut self, allow: bool) -> &mut ParseOptions
pub fn allow_backslash_quotes(&mut self, allow: bool) -> &mut ParseOptions
Allows single- and double-quote characters to be escaped inside quoted strings by preceding them with a backslash. Similarly, backslash characters themselves can be escaped inside quoted strings by preceding them with a backslash. Note that if a backslash is followed by any another character, or is inside a non-quoted term, then it is treated as a literal backslash.
Sourcepub fn allow_unicode_escapes(&mut self, allow: bool) -> &mut ParseOptions
pub fn allow_unicode_escapes(&mut self, allow: bool) -> &mut ParseOptions
Allows \uXXXXXX
unicode escapes in term values. Each X must be a hexadecimal
character, and all six are required (use zero-padding as needed). To represent
a string like \u001234
literally in a query string, one or more of the
characters can be escaped via the unicode escape sequence; in this example
\u00005Cu001234
can be used to escape the initial backslash character
with the equivalent unicode escape.