Struct path2regex::PathRegexOptions
source · pub struct PathRegexOptions {
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,
}
Expand description
The Configuration of the PathRegex
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
.
Trait Implementations§
source§impl Clone for PathRegexOptions
impl Clone for PathRegexOptions
source§fn clone(&self) -> PathRegexOptions
fn clone(&self) -> PathRegexOptions
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 PathRegexOptions
impl Debug for PathRegexOptions
source§impl Default for PathRegexOptions
impl Default for PathRegexOptions
source§impl Display for PathRegexOptions
impl Display for PathRegexOptions
source§impl From<MatcherOptions> for PathRegexOptions
impl From<MatcherOptions> for PathRegexOptions
source§fn from(options: MatcherOptions) -> Self
fn from(options: MatcherOptions) -> Self
Converts to this type from the input type.
source§impl From<PathRegexOptions> for ParserOptions
impl From<PathRegexOptions> for ParserOptions
source§fn from(options: PathRegexOptions) -> Self
fn from(options: PathRegexOptions) -> Self
Converts to this type from the input type.