tauri_plugin_svelte/svelte.rs
1// THIS FILE WAS AUTOGENERATED AND SHOULD NOT BE EDITED MANUALLY.
2//
3// Check the `codegen` command in the `tauri-store-cli` crate.
4// https://github.com/ferreira-tb/tauri-store/tree/main/crates/tauri-store-cli
5//
6// To modify the behavior of the plugin, you must either change the
7// upstream `tauri-store` crate or update the code generation itself.
8// This ensures that all plugins maintain consistent behavior.
9
10use tauri::{Runtime, State};
11use tauri_store::{Collection, CollectionMarker, StoreCollection};
12
13/// The Svelte plugin.
14#[derive(Collection)]
15pub struct Svelte<'a, R: Runtime>(pub(crate) State<'a, StoreCollection<R, SvelteMarker>>);
16
17/// Marker for the Svelte plugin.
18pub struct SvelteMarker;
19
20impl CollectionMarker for SvelteMarker {}