pub struct RouteHit {
pub route_name: String,
pub target: String,
pub host_header: Option<String>,
pub other_headers: HashMap<String, String>,
}Expand description
Result of a successful match.
Fields§
§route_name: String§target: StringExpanded target template (e.g. "api:3001").
host_header: Option<String>Expanded Host header from the headers map, if any.
other_headers: HashMap<String, String>Other expanded headers, excluding Host (case-insensitive).
Trait Implementations§
impl Eq for RouteHit
impl StructuralPartialEq for RouteHit
Auto Trait Implementations§
impl Freeze for RouteHit
impl RefUnwindSafe for RouteHit
impl Send for RouteHit
impl Sync for RouteHit
impl Unpin for RouteHit
impl UnsafeUnpin for RouteHit
impl UnwindSafe for RouteHit
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.