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
sourceimpl Clone for PathRegexOptions
impl Clone for PathRegexOptions
sourcefn clone(&self) -> PathRegexOptions
fn clone(&self) -> PathRegexOptions
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for PathRegexOptions
impl Debug for PathRegexOptions
sourceimpl Default for PathRegexOptions
impl Default for PathRegexOptions
sourceimpl Display for PathRegexOptions
impl Display for PathRegexOptions
sourceimpl From<MatcherOptions> for PathRegexOptions
impl From<MatcherOptions> for PathRegexOptions
sourcefn from(options: MatcherOptions) -> Self
fn from(options: MatcherOptions) -> Self
Converts to this type from the input type.
sourceimpl From<PathRegexOptions> for ParserOptions
impl From<PathRegexOptions> for ParserOptions
sourcefn from(options: PathRegexOptions) -> Self
fn from(options: PathRegexOptions) -> Self
Converts to this type from the input type.
sourceimpl<'a> TryIntoWith<PathRegex, PathRegexOptions> for &'a str
impl<'a> TryIntoWith<PathRegex, PathRegexOptions> for &'a str
fn try_into_with(self, options: &PathRegexOptions) -> Result<PathRegex>
sourceimpl TryIntoWith<PathRegex, PathRegexOptions> for Regex
impl TryIntoWith<PathRegex, PathRegexOptions> for Regex
fn try_into_with(self, _: &PathRegexOptions) -> Result<PathRegex>
sourceimpl TryIntoWith<PathRegex, PathRegexOptions> for String
impl TryIntoWith<PathRegex, PathRegexOptions> for String
fn try_into_with(self, options: &PathRegexOptions) -> Result<PathRegex>
sourceimpl<T> TryIntoWith<PathRegex, PathRegexOptions> for Vec<T>where
T: TryIntoWith<PathRegex, PathRegexOptions>,
impl<T> TryIntoWith<PathRegex, PathRegexOptions> for Vec<T>where
T: TryIntoWith<PathRegex, PathRegexOptions>,
fn try_into_with(self, options: &PathRegexOptions) -> Result<PathRegex>
Auto Trait Implementations
impl RefUnwindSafe for PathRegexOptions
impl Send for PathRegexOptions
impl Sync for PathRegexOptions
impl Unpin for PathRegexOptions
impl UnwindSafe for PathRegexOptions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more