Crate datastar

Source
Expand description

Datastar is a Rust implementation of the Datastar SDK specification.

Modules§

axum
Axum integration for Datastar.
consts
Datastar constants
execute_script
ExecuteScript executes JavaScript in the browser.
merge_fragments
MergeFragments merges one or more fragments into the DOM. By default, Datastar merges fragments using Idiomorph, which matches top level elements based on their ID.
merge_signals
MergeSignals sends one or more signals to the browser to be merged into the signals.
prelude
The prelude for the datastar crate
rama
Rama integration for Datastar.
remove_fragments
RemoveFragments sends a selector to the browser to remove HTML fragments from the DOM.
remove_signals
RemoveSignals sends signals to the browser to be removed from the signals.
rocket
Rocket integration for Datastar.

Structs§

DatastarEvent
DatastarEvent is a struct that represents a generic Datastar event. All Datastar events implement Into<DatastarEvent>.
Sse
Sse is a wrapper around a stream of DatastarEvents.
TrySse
TrySse is a wrapper around a stream of DatastarEvents that can fail.