blockworx/doc_ng/operands.rs
1//! The singleton's update vocabulary. The per-entity-kind `*Init`
2//! structs and `*Update` enums are generated beside their entities in
3//! `block_model.rs` by the `entity!` macro (`entity.rs`), from the same
4//! field lists as the structs themselves — one source, four shapes.
5//! Serde variant names are wire tags: never rename or repurpose one
6//! (deprecate and add instead); unknown tag at decode ⇒ refuse to load.
7
8use serde::{Deserialize, Serialize};
9
10#[derive(Serialize, Deserialize, Debug, Clone)]
11pub enum DocumentUpdate {
12 Name(String),
13}