pub enum View {
}Expand description
Top-level view returned from a component.
Variants§
Text(String)
Dynamic(Dynamic)
Reactive text/HTML node bound to a signal.
Element(Element)
Fragment(Fragment)
Component(ComponentMarker)
Island(Island)
A self-contained interactive island. Renders its own SSR HTML and declares the chunk that will be lazy-loaded on first interaction.
Boundary(Boundary)
Resumable component boundary — lazy handler chunk + viewport prefetch.
Slot(SlotView)
Content projection slot — resolved from parent slotted children.
Raw(String)
A rendered chunk of raw HTML — used for trusted output and for nested pre-rendered components that have already been flattened.
Show(ShowView)
Reactive conditional — toggles branches on the client via <resuma-show>.
For(ForView)
Reactive keyed list — client diffing via <resuma-for>.
Match(MatchView)
Reactive multi-branch match — client toggles via <resuma-match>.
Empty
Implementations§
Source§impl View
impl View
pub fn text(s: impl Into<String>) -> Self
Sourcepub fn raw(html: impl Into<String>) -> Self
pub fn raw(html: impl Into<String>) -> Self
Emit raw HTML without escaping.
Security: never pass user-controlled strings here — use view! text
interpolation instead, which escapes HTML entities automatically.