#[non_exhaustive]pub struct RouteMatchView {
pub matched: Option<MatchedRule>,
pub considered: Vec<MatchConsidered>,
}Expand description
Shown to the user when they ask “what rule would match this request?”.
§Why we carry both the match and the non-matches
A GUI debugger doesn’t just answer “which rule matched” — it answers “why didn’t the rule I expected match?”. Surfacing the mismatches lets the UI highlight the first failing predicate on each rule.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.matched: Option<MatchedRule>Matching rule, if any. None means the request would fall through
to the dynamic-route fallback.
considered: Vec<MatchConsidered>Every rule the matcher considered before deciding, with the reason it was skipped. Order matches evaluation order.
Trait Implementations§
Source§impl Clone for RouteMatchView
impl Clone for RouteMatchView
Source§fn clone(&self) -> RouteMatchView
fn clone(&self) -> RouteMatchView
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RouteMatchView
impl Debug for RouteMatchView
Auto Trait Implementations§
impl Freeze for RouteMatchView
impl RefUnwindSafe for RouteMatchView
impl Send for RouteMatchView
impl Sync for RouteMatchView
impl Unpin for RouteMatchView
impl UnsafeUnpin for RouteMatchView
impl UnwindSafe for RouteMatchView
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