pub struct RouteChainEntry {
pub component: String,
pub path: String,
pub params: HashMap<String, String>,
pub exact: bool,
pub allowed_query: String,
pub keep_alive: bool,
pub cache_tags: Vec<String>,
pub invalidates: Vec<String>,
pub pending_component: String,
pub error_component: String,
}Expand description
A single entry in the matched route chain, one per nesting level.
Fields§
§component: StringComponent tag name for this route level.
path: StringThe route path pattern (as declared in the template).
params: HashMap<String, String>Bound route parameters at this level.
exact: boolWhether this route requires an exact match.
allowed_query: StringComma-separated allowlist of query parameters forwarded as attributes.
keep_alive: boolWhen true, the router keeps the component alive across navigations.
Cache tag templates from the proto (e.g. ["thread:{threadId}", "inbox"]).
invalidates: Vec<String>Invalidation tag templates from the proto.
pending_component: StringComponent tag name for pending/loading UI.
error_component: StringComponent tag name for error boundary UI.
Implementations§
Trait Implementations§
Source§impl Clone for RouteChainEntry
impl Clone for RouteChainEntry
Auto Trait Implementations§
impl Freeze for RouteChainEntry
impl RefUnwindSafe for RouteChainEntry
impl Send for RouteChainEntry
impl Sync for RouteChainEntry
impl Unpin for RouteChainEntry
impl UnsafeUnpin for RouteChainEntry
impl UnwindSafe for RouteChainEntry
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