Expand description
types.rs
Serde + specta::Type annotated payload and event shapes for the
entity-graph Tauri plugin. Tauri Specta generates the TypeScript command
surface from these types via the package’s build:bindings script.
Structs§
- Entity
Changed Event - Emitted when an entity is mutated on the Rust side (e.g. by an IPC command from another window, or a background task).
- GetEntity
Result - Returned by
graph_get_entity. - GetList
Result - Returned by
graph_get_list. - Graph
Plugin Error Event - Emitted on plugin-level errors.
- Patch
Entity Payload - Payload for the
graph_patch_entitycommand (UI-only overlay — not stored in the canonical entity table, but tracked by the plugin for devtools). - Persist
Snapshot Payload - Payload for
graph_persist_snapshot— serialised graph state sent from TS. - Platform
Ping - Returned by the native desktop/Android/iOS smoke command.
- Remove
Entity Payload - Payload for the
graph_remove_entitycommand. - Restore
Snapshot Payload - Payload for
graph_restore_snapshot— requests Rust to return stored data. - Restore
Snapshot Result - Returned by
graph_restore_snapshotwith the raw snapshot string. - SetList
Payload - Payload for the
graph_set_listcommand. - Snapshot
Persisted Event - Emitted after a successful
graph_persist_snapshot. - Snapshot
Restored Event - Emitted after a successful
graph_restore_snapshot. - Upsert
Entity Payload - Payload for the
graph_upsert_entitycommand.
Enums§
- Entity
Operation - The three mutation kinds that can arrive over the event channel.
Type Aliases§
- Json
Object - Opaque JSON value used for entity data fields.