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§
- Datastar
Event DatastarEvent
is a struct that represents a generic Datastar event. All Datastar events implementInto<DatastarEvent>
.- Sse
Sse
is a wrapper around a stream ofDatastarEvent
s.- TrySse
TrySse
is a wrapper around a stream ofDatastarEvent
s that can fail.