Module types

Source
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§

EntityChangedEvent
Emitted when an entity is mutated on the Rust side (e.g. by an IPC command from another window, or a background task).
GetEntityResult
Returned by graph_get_entity.
GetListResult
Returned by graph_get_list.
GraphPluginErrorEvent
Emitted on plugin-level errors.
PatchEntityPayload
Payload for the graph_patch_entity command (UI-only overlay — not stored in the canonical entity table, but tracked by the plugin for devtools).
PersistSnapshotPayload
Payload for graph_persist_snapshot — serialised graph state sent from TS.
PlatformPing
Returned by the native desktop/Android/iOS smoke command.
RemoveEntityPayload
Payload for the graph_remove_entity command.
RestoreSnapshotPayload
Payload for graph_restore_snapshot — requests Rust to return stored data.
RestoreSnapshotResult
Returned by graph_restore_snapshot with the raw snapshot string.
SetListPayload
Payload for the graph_set_list command.
SnapshotPersistedEvent
Emitted after a successful graph_persist_snapshot.
SnapshotRestoredEvent
Emitted after a successful graph_restore_snapshot.
UpsertEntityPayload
Payload for the graph_upsert_entity command.

Enums§

EntityOperation
The three mutation kinds that can arrive over the event channel.

Type Aliases§

JsonObject
Opaque JSON value used for entity data fields.