pub struct MatcherOptions {
    pub delimiter: String,
    pub prefixes: String,
    pub sensitive: bool,
    pub strict: bool,
    pub end: bool,
    pub start: bool,
    pub ends_with: String,
    pub encode: for<'a> fn(_: &'a str) -> String,
    pub decode: for<'a> fn(_: &'a str, _: &'a Key) -> String,
}
Available on crate feature match only.
Expand description

The Configuration of the Matcher

Fields§

§delimiter: String

Set the default delimiter for repeat parameters. (default: '/#?')

§prefixes: String

List of characters to automatically consider prefixes when parsing.

§sensitive: bool

When true the regexp will be case sensitive. (default: false)

§strict: bool

When true the regexp won’t allow an optional trailing delimiter to match. (default: false)

§end: bool

When true the regexp will match to the end of the string. (default: true)

§start: bool

When true the regexp will match from the beginning of the string. (default: true)

§ends_with: String

List of characters that can also be “end” characters.

§encode: for<'a> fn(_: &'a str) -> String

Encode path tokens for use in the Regex.

§decode: for<'a> fn(_: &'a str, _: &'a Key) -> String

Function for decoding strings for params.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Formats the value using the given formatter. Read more
Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.