pub struct CompiledRoute {
pub name: String,
pub pattern: Regex,
pub placeholders: Vec<Placeholder>,
pub target_template: String,
pub header_templates: HashMap<String, String>,
pub match_pattern: String,
pub path_prefix: Option<String>,
pub namespace: String,
}Expand description
A compiled route — regex + templates — ready to evaluate per request.
Fields§
§name: String§pattern: Regex§placeholders: Vec<Placeholder>§target_template: String§header_templates: HashMap<String, String>§match_pattern: StringOriginal (uncompiled) match pattern, retained so the admin API
can report and round-trip the source rule.
path_prefix: Option<String>Normalized optional path prefix (e.g. "/_vscode/"). None
matches any path (lowest path priority).
namespace: StringNamespace this route belongs to — the conf.d fragment stem, or
"default" for the bundled defaults. Used for ps grouping.
Trait Implementations§
Source§impl Clone for CompiledRoute
impl Clone for CompiledRoute
Source§fn clone(&self) -> CompiledRoute
fn clone(&self) -> CompiledRoute
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CompiledRoute
impl RefUnwindSafe for CompiledRoute
impl Send for CompiledRoute
impl Sync for CompiledRoute
impl Unpin for CompiledRoute
impl UnsafeUnpin for CompiledRoute
impl UnwindSafe for CompiledRoute
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more