Expand description
Datastar is a Rust implementation of the Datastar SDK specification.
Modules§
- execute_
script ExecuteScriptexecutes JavaScript in the browser.- merge_
fragments MergeFragmentsmerges 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 MergeSignalssends one or more signals to the browser to be merged into the signals.- prelude
- The prelude for the
datastarcrate - remove_
fragments RemoveFragmentssends a selector to the browser to remove HTML fragments from the DOM.- remove_
signals RemoveSignalssends signals to the browser to be removed from the signals.
Structs§
- Datastar
Event DatastarEventis a struct that represents a generic Datastar event. All Datastar events implementInto<DatastarEvent>.- Sse
Sseis a wrapper around a stream ofDatastarEvents.- TrySse
TrySseis a wrapper around a stream ofDatastarEvents that can fail.