struct
RouteMatch
pub struct RouteMatch {
pub index: usize,
pub pattern: String,
pub params: BTreeMap<String, String>,
}A successful route match.
Fields
Methods
param
pub fn param(&self, name: &str) -> Option<&str>The value of parameter name in the matched path.
to_value
pub fn to_value(&self) -> Value{ index, pattern, params: { … } } for use in template scopes.