pub struct WebUiFragmentRoute {
pub path: String,
pub fragment_id: String,
pub exact: bool,
pub children: Vec<WebUiFragmentRoute>,
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,
pub content_fragment_id: String,
}Expand description
Declarative route definition linking a URL path template to a component. Nested routes are expressed via repeated children.
Fields§
§path: String§fragment_id: String§exact: bool§children: Vec<WebUiFragmentRoute>Nested child routes rendered at the component’s
allowed_query: StringComma-separated allowlist of query parameters forwarded as attributes. Empty string means no query params are forwarded (deny-by-default).
keep_alive: boolWhen true, the router preserves the mounted component instance across navigations instead of destroying and recreating it. Opt-in per route.
Cache tag templates for this route (e.g. “thread:{threadId}”, “inbox”). Placeholders like {param} are resolved at render time with actual param values.
invalidates: Vec<String>Invalidation tag templates (e.g. “inbox”, “thread:{threadId}”). After a mutation action on this route, these tags are auto-invalidated. Supports {param} placeholders resolved at render time.
pending_component: StringComponent tag name for the pending/loading UI (e.g. “mail-skeleton”). Validated at build time — build fails if the component does not exist.
error_component: StringComponent tag name for the error boundary UI (e.g. “error-page”). Validated at build time — build fails if the component does not exist.
content_fragment_id: StringOptional runtime content authored directly inside this route. The record contains typed boundary references and is rendered only for this route path; nested route declarations remain in children.
Trait Implementations§
Source§impl Clone for WebUiFragmentRoute
impl Clone for WebUiFragmentRoute
Source§impl Debug for WebUiFragmentRoute
impl Debug for WebUiFragmentRoute
Source§impl Default for WebUiFragmentRoute
impl Default for WebUiFragmentRoute
Source§impl<'de> Deserialize<'de> for WebUiFragmentRoute
impl<'de> Deserialize<'de> for WebUiFragmentRoute
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Message for WebUiFragmentRoute
impl Message for WebUiFragmentRoute
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.