//! Lightweight `UrlParams` container for URL parameters (path + query) — unified and whitelisted access.
usecrate::utils::aliases::StrMap;/// Lightweight container for URL parameters (path + query).
/// Passed to form methods for whitelisted access.
pubstructUrlParams<'a>{pubpath:&'a StrMap,
pubquery:&'a StrMap,
}impl<'a>UrlParams<'a>{/// Wraps the given path and query maps for whitelisted lookup via [`get`](Self::get).
pubfnnew(path:&'a StrMap, query:&'a StrMap)->Self{Self{ path, query }}/// Search in path first, then query.
#[must_use]pubfnget(&self, key:&str)->Option<&str>{self.path
.get(key).or_else(||self.query.get(key)).map(String::as_str)}}