pub struct CompiledRoute {
pub name: String,
pub pattern: Regex,
pub placeholders: Vec<Placeholder>,
pub target_template: String,
pub header_templates: HashMap<String, 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>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