Struct ParseOptions

Source
pub struct ParseOptions { /* private fields */ }

Implementations§

Source§

impl ParseOptions

Source

pub fn default() -> Self

Source

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.

Source

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.

Trait Implementations§

Source§

impl Debug for ParseOptions

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.