Struct path2regex::CompilerOptions
source · pub struct CompilerOptions {
pub delimiter: String,
pub prefixes: String,
pub sensitive: bool,
pub encode: for<'a> fn(_: &'a str, _: &'a Key) -> String,
pub validate: bool,
}
Available on crate feature
compile
only.Expand description
The Configuration of the Compiler
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
)
encode: for<'a> fn(_: &'a str, _: &'a Key) -> String
Function for encoding input strings for output.
validate: bool
When false
the function can produce an invalid (unmatched) path. (default: true
)
Trait Implementations§
source§impl Clone for CompilerOptions
impl Clone for CompilerOptions
source§fn clone(&self) -> CompilerOptions
fn clone(&self) -> CompilerOptions
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 CompilerOptions
impl Debug for CompilerOptions
source§impl Default for CompilerOptions
impl Default for CompilerOptions
source§impl Display for CompilerOptions
impl Display for CompilerOptions
source§impl From<CompilerOptions> for ParserOptions
impl From<CompilerOptions> for ParserOptions
source§fn from(options: CompilerOptions) -> Self
fn from(options: CompilerOptions) -> Self
Converts to this type from the input type.